|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.util.ClassDescriptorResolverImpl
The default implementation of the ClassDescriptorResolver interface
Constructor Summary | |
ClassDescriptorResolverImpl()
Creates a new ClassDescriptorResolverImpl |
|
ClassDescriptorResolverImpl(java.lang.ClassLoader loader)
Creates a new ClassDescriptorResolverImpl with the given ClassLoader |
Method Summary | |
void |
associate(java.lang.Class type,
XMLClassDescriptor classDesc)
Associates (or binds) a class type with a given MarshalInfo |
boolean |
error()
Returns true if an error was generated on the last call to one of the resolve methods |
java.lang.String |
getErrorMessage()
Returns the last error message generated If no error String exists, null will be returned |
Introspector |
getIntrospector()
Returns the Introspector being used by this ClassDescriptorResolver. |
XMLMappingLoader |
getMappingLoader()
Note: This method will be removed soon (kv). |
XMLClassDescriptor |
resolve(java.lang.Class type)
Returns the XMLClassDescriptor for the given class |
XMLClassDescriptor |
resolve(java.lang.String className)
Returns the XMLClassDescriptor for the given class name |
XMLClassDescriptor |
resolve(java.lang.String className,
java.lang.ClassLoader loader)
Returns the XMLClassDescriptor for the given class name |
ClassDescriptorEnumeration |
resolveAllByXMLName(java.lang.String xmlName,
java.lang.String namespaceURI,
java.lang.ClassLoader loader)
Returns an enumeration of XMLClassDescriptor objects that match the given xml name |
XMLClassDescriptor |
resolveByXMLName(java.lang.String xmlName,
java.lang.String namespaceURI,
java.lang.ClassLoader loader)
Returns the first XMLClassDescriptor that matches the given XML name and namespaceURI. |
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the ClassLoader to use when loading class descriptors |
void |
setIntrospection(boolean enable)
Enables or disables introspection. |
void |
setMappingLoader(XMLMappingLoader mappingLoader)
Sets the mapping loader for this ClassDescriptorResolver Note: This method will be removed soon (kv). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassDescriptorResolverImpl()
public ClassDescriptorResolverImpl(java.lang.ClassLoader loader)
loader
- the ClassLoader to use when loading ClassDescriptorsMethod Detail |
public void associate(java.lang.Class type, XMLClassDescriptor classDesc)
type
- the Class to associatepublic java.lang.String getErrorMessage()
getErrorMessage
in interface ClassDescriptorResolver
public Introspector getIntrospector()
public XMLMappingLoader getMappingLoader()
ClassDescriptorResolver
getMappingLoader
in interface ClassDescriptorResolver
public boolean error()
error
in interface ClassDescriptorResolver
public XMLClassDescriptor resolve(java.lang.Class type)
resolve
in interface ClassDescriptorResolver
type
- the Class to find the XMLClassDescriptor for
public XMLClassDescriptor resolve(java.lang.String className)
resolve
in interface ClassDescriptorResolver
className
- the class name to find the XMLClassDescriptor for
public XMLClassDescriptor resolve(java.lang.String className, java.lang.ClassLoader loader)
resolve
in interface ClassDescriptorResolver
className
- the class name to find the XMLClassDescriptor forloader
- the ClassLoader to use
public XMLClassDescriptor resolveByXMLName(java.lang.String xmlName, java.lang.String namespaceURI, java.lang.ClassLoader loader)
resolveByXMLName
in interface ClassDescriptorResolver
loader
- the ClassLoader to use
public ClassDescriptorEnumeration resolveAllByXMLName(java.lang.String xmlName, java.lang.String namespaceURI, java.lang.ClassLoader loader)
resolveAllByXMLName
in interface ClassDescriptorResolver
loader
- the ClassLoader to use
public void setClassLoader(java.lang.ClassLoader loader)
loader
- the ClassLoader to usepublic void setIntrospection(boolean enable)
enable
- a flag to indicate whether or not introspection
is allowed.public void setMappingLoader(XMLMappingLoader mappingLoader)
ClassDescriptorResolver
setMappingLoader
in interface ClassDescriptorResolver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |