org.exolab.castor.xml.util
public class ClassDescriptorResolverImpl extends Object implements ClassDescriptorResolver
Version: $Revision: 1.9 $ $Date: 2005/03/30 10:10:25 $
Nested Class Summary | |
---|---|
class | ClassDescriptorResolverImpl.XCDEnumerator
A locally used implementation of ClassDescriptorEnumeration |
Constructor Summary | |
---|---|
ClassDescriptorResolverImpl()
Creates a new ClassDescriptorResolverImpl | |
ClassDescriptorResolverImpl(ClassLoader loader)
Creates a new ClassDescriptorResolverImpl with the given ClassLoader
|
Method Summary | |
---|---|
void | associate(Class type, XMLClassDescriptor classDesc)
Associates (or binds) a class type with a given ClassDescriptor
|
Introspector | getIntrospector()
Returns the Introspector being used by this ClassDescriptorResolver.
|
XMLMappingLoader | getMappingLoader() |
XMLClassDescriptor | resolve(Class type)
Returns the XMLClassDescriptor for the given class |
XMLClassDescriptor | resolve(String className)
Returns the XMLClassDescriptor for the given class name |
XMLClassDescriptor | resolve(String className, ClassLoader loader)
Returns the XMLClassDescriptor for the given class name |
ClassDescriptorEnumeration | resolveAllByXMLName(String xmlName, String namespaceURI, ClassLoader loader)
Returns an enumeration of XMLClassDescriptor objects that
match the given xml name
|
XMLClassDescriptor | resolveByXMLName(String xmlName, String namespaceURI, ClassLoader loader)
Returns the first XMLClassDescriptor that matches the given
XML name and namespaceURI. |
void | setClassLoader(ClassLoader loader)
Sets the ClassLoader to use when loading class descriptors |
void | setIntrospection(boolean enable)
Enables or disables introspection. |
void | setLoadPackageMappings(boolean loadPackageMappings)
Sets whether or not to look for and load package specific
mapping files (".castor.xml" files).
|
void | setMappingLoader(XMLMappingLoader mappingLoader) |
Parameters: loader the ClassLoader to use when loading ClassDescriptors
Parameters: type the Class to associate with the given descriptor classDesc the ClassDescriptor to associate the given class with
Returns: the Introspector being used by this ClassDescriptorResolver
Parameters: type the Class to find the XMLClassDescriptor for
Returns: the XMLClassDescriptor for the given class
Parameters: className the class name to find the XMLClassDescriptor for
Returns: the XMLClassDescriptor for the given class name
Parameters: className the class name to find the XMLClassDescriptor for loader the ClassLoader to use
Returns: the XMLClassDescriptor for the given class name
Parameters: className the class name to find the XMLClassDescriptor for loader the ClassLoader to use
Returns: an enumeration of XMLClassDescriptor objects.
Parameters: className the class name to find the XMLClassDescriptor for loader the ClassLoader to use
Returns: the XMLClassDescriptor for the given XML name
Parameters: loader the ClassLoader to use
Parameters: enable a flag to indicate whether or not introspection is allowed.
Parameters: loadPackageMappings a boolean that enables or disables the loading of package specific mapping files