org.exolab.castor.xml
Interface XMLClassDescriptorResolver
- ClassDescriptorResolver
- XMLClassDescriptorResolverImpl
public interface XMLClassDescriptorResolver
An interface for finding or "resolving" XMLClassDescriptor classes.
Note:
This interface is used by the marshalling Framework for
resolving XMLClassDescriptors for non-primitive types.
There are no guarantees that this class will be called for
java native classes.
$Revision: 5951 $ $Date: 2005-02-28 17:41:38 -0700 (Mon, 28 Feb 2005) $
resolve
public XMLClassDescriptor resolve(String className)
throws ResolverException
Returns the XMLClassDescriptor for the given class name
className
- the class name to find the XMLClassDescriptor for
- the XMLClassDescriptor for the given class name
resolve
public XMLClassDescriptor resolve(String className,
ClassLoader loader)
throws ResolverException
Returns the XMLClassDescriptor for the given class name
className
- the class name to find the XMLClassDescriptor forloader
- the ClassLoader to use
- the XMLClassDescriptor for the given class name
resolveAllByXMLName
public ClassDescriptorEnumeration resolveAllByXMLName(String xmlName,
String namespaceURI,
ClassLoader loader)
throws ResolverException
Returns an enumeration of XMLClassDescriptor objects that
match the given xml name.
xmlName
- The class name to find the XMLClassDescriptor for.loader
- The ClassLoader to use.
- An enumeration of XMLClassDescriptor objects.
resolveByXMLName
public XMLClassDescriptor resolveByXMLName(String xmlName,
String namespaceURI,
ClassLoader loader)
throws ResolverException
Returns the first XMLClassDescriptor that matches the given
XML name and namespaceURI. Null is returned if no descriptor
can be found.
xmlName
- The class name to find the XMLClassDescriptor for.loader
- The ClassLoader to use.
- The XMLClassDescriptor for the given XML name.
resolveXML
public XMLClassDescriptor resolveXML(Class type)
throws ResolverException
Returns the XMLClassDescriptor for the given class
type
- the Class to find the XMLClassDescriptor for
- the XMLClassDescriptor for the given class
setClassLoader
public void setClassLoader(ClassLoader loader)
Sets the ClassLoader to use when loading class descriptors
loader
- the ClassLoader to use
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com