Classes | |
| class | XCDEnumerator |
Public Member Functions | |
| ClassDescriptorResolverImpl () | |
| ClassDescriptorResolverImpl (ClassLoader loader) | |
| void | associate (Class type, XMLClassDescriptor classDesc) |
| String | getErrorMessage () |
| Introspector | getIntrospector () |
| XMLMappingLoader | getMappingLoader () |
| boolean | error () |
| XMLClassDescriptor | resolve (Class type) |
| XMLClassDescriptor | resolve (String className) |
| XMLClassDescriptor | resolve (String className, ClassLoader loader) |
| XMLClassDescriptor | resolveByXMLName (String xmlName, String namespaceURI, ClassLoader loader) |
| ClassDescriptorEnumeration | resolveAllByXMLName (String xmlName, String namespaceURI, ClassLoader loader) |
| void | setClassLoader (ClassLoader loader) |
| void | setIntrospection (boolean enable) |
| void | setMappingLoader (XMLMappingLoader mappingLoader) |
The default implementation of the ClassDescriptorResolver interface
| org.exolab.castor.xml.util.ClassDescriptorResolverImpl.ClassDescriptorResolverImpl | ( | ) |
Creates a new ClassDescriptorResolverImpl
| org.exolab.castor.xml.util.ClassDescriptorResolverImpl.ClassDescriptorResolverImpl | ( | ClassLoader | loader | ) |
Creates a new ClassDescriptorResolverImpl with the given ClassLoader
| loader | the ClassLoader to use when loading ClassDescriptors |
| void org.exolab.castor.xml.util.ClassDescriptorResolverImpl.associate | ( | Class | type, | |
| XMLClassDescriptor | classDesc | |||
| ) |
Associates (or binds) a class type with a given ClassDescriptor
| type | the Class to associate with the given descriptor | |
| classDesc | the ClassDescriptor to associate the given class with |
References org.exolab.castor.xml.XMLClassDescriptor.getNameSpaceURI(), and org.exolab.castor.xml.XMLClassDescriptor.getXMLName().
Referenced by org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve().
| boolean org.exolab.castor.xml.util.ClassDescriptorResolverImpl.error | ( | ) |
Returns true if an error was generated on the last call to one of the resolve methods
Implements org.exolab.castor.xml.ClassDescriptorResolver.
| String org.exolab.castor.xml.util.ClassDescriptorResolverImpl.getErrorMessage | ( | ) |
Returns the last error message generated If no error String exists, null will be returned
Implements org.exolab.castor.xml.ClassDescriptorResolver.
| Introspector org.exolab.castor.xml.util.ClassDescriptorResolverImpl.getIntrospector | ( | ) |
Returns the Introspector being used by this ClassDescriptorResolver. This allows for configuration of the Introspector.
Referenced by org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve().
| XMLMappingLoader org.exolab.castor.xml.util.ClassDescriptorResolverImpl.getMappingLoader | ( | ) |
Note: This method will be removed soon (kv).
Implements org.exolab.castor.xml.ClassDescriptorResolver.
| XMLClassDescriptor org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve | ( | String | className, | |
| ClassLoader | loader | |||
| ) |
Returns the XMLClassDescriptor for the given class name
| className | the class name to find the XMLClassDescriptor for | |
| loader | the ClassLoader to use |
Implements org.exolab.castor.xml.ClassDescriptorResolver.
References org.exolab.castor.xml.util.ClassDescriptorResolverImpl.associate(), org.exolab.castor.mapping.loader.MappingLoader.getDescriptor(), org.exolab.castor.mapping.ClassDescriptor.getJavaClass(), and org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve().
| XMLClassDescriptor org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve | ( | Class | type | ) |
Returns the XMLClassDescriptor for the given class
| type | the Class to find the XMLClassDescriptor for |
Implements org.exolab.castor.xml.ClassDescriptorResolver.
References org.exolab.castor.xml.Introspector.generateClassDescriptor(), org.exolab.castor.mapping.loader.MappingLoader.getDescriptor(), org.exolab.castor.xml.util.ClassDescriptorResolverImpl.getIntrospector(), and org.exolab.castor.xml.XMLException.toString().
Referenced by org.exolab.castor.tools.MappingTool.addClass(), alma.acs.component.dynwrapper.CastorUnmarshalMapper.canTranslate(), org.exolab.castor.xml.XMLMappingLoader.createDescriptor(), and org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve().
| XMLClassDescriptor org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve | ( | String | className | ) |
Returns the XMLClassDescriptor for the given class name
| className | the class name to find the XMLClassDescriptor for |
Implements org.exolab.castor.xml.ClassDescriptorResolver.
References org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve().
| ClassDescriptorEnumeration org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolveAllByXMLName | ( | String | xmlName, | |
| String | namespaceURI, | |||
| ClassLoader | loader | |||
| ) |
Returns an enumeration of XMLClassDescriptor objects that match the given xml name
| className | the class name to find the XMLClassDescriptor for | |
| loader | the ClassLoader to use |
Implements org.exolab.castor.xml.ClassDescriptorResolver.
References org.exolab.castor.xml.util.ClassDescriptorResolverImpl.XCDEnumerator.add(), org.exolab.castor.xml.XMLClassDescriptor.getXMLName(), and org.exolab.castor.mapping.loader.MappingLoader.listDescriptors().
| XMLClassDescriptor org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolveByXMLName | ( | String | xmlName, | |
| String | namespaceURI, | |||
| ClassLoader | loader | |||
| ) |
Returns the first XMLClassDescriptor that matches the given XML name and namespaceURI. Null is returned if no descriptor can be found.
| className | the class name to find the XMLClassDescriptor for | |
| loader | the ClassLoader to use |
Implements org.exolab.castor.xml.ClassDescriptorResolver.
References org.exolab.castor.xml.XMLClassDescriptor.getNameSpaceURI(), org.exolab.castor.xml.XMLClassDescriptor.getXMLName(), and org.exolab.castor.mapping.loader.MappingLoader.listDescriptors().
| void org.exolab.castor.xml.util.ClassDescriptorResolverImpl.setClassLoader | ( | ClassLoader | loader | ) |
Sets the ClassLoader to use when loading class descriptors
| loader | the ClassLoader to use |
| void org.exolab.castor.xml.util.ClassDescriptorResolverImpl.setIntrospection | ( | boolean | enable | ) |
Enables or disables introspection. Introspection is enabled by default.
| enable | a flag to indicate whether or not introspection is allowed. |
Referenced by alma.acs.component.dynwrapper.CastorUnmarshalMapper.canTranslate(), and org.exolab.castor.xml.XMLMappingLoader.createDescriptor().
| void org.exolab.castor.xml.util.ClassDescriptorResolverImpl.setMappingLoader | ( | XMLMappingLoader | xmlMappingLoader | ) |
Sets the mapping loader for this ClassDescriptorResolver
Note: This method will be removed soon (kv).
Implements org.exolab.castor.xml.ClassDescriptorResolver.
1.7.0