org.exolab.castor.xml

Interface ClassDescriptorResolver

public interface ClassDescriptorResolver

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.

Version: $Revision: 1.2 $ $Date: 2005/03/01 00:41:38 $

Author: Keith Visco

Method Summary
XMLMappingLoadergetMappingLoader()

Note: This method will be removed soon (kv).
XMLClassDescriptorresolve(Class type)
Returns the XMLClassDescriptor for the given class
XMLClassDescriptorresolve(String className)
Returns the XMLClassDescriptor for the given class name
XMLClassDescriptorresolve(String className, ClassLoader loader)
Returns the XMLClassDescriptor for the given class name
ClassDescriptorEnumerationresolveAllByXMLName(String xmlName, String namespaceURI, ClassLoader loader)
Returns an enumeration of XMLClassDescriptor objects that match the given xml name
XMLClassDescriptorresolveByXMLName(String xmlName, String namespaceURI, ClassLoader loader)
Returns the first XMLClassDescriptor that matches the given XML name and namespaceURI.
voidsetMappingLoader(XMLMappingLoader xmlMappingLoader)
Sets the mapping loader for this ClassDescriptorResolver
Note: This method will be removed soon (kv).

Method Detail

getMappingLoader

public XMLMappingLoader getMappingLoader()

Note: This method will be removed soon (kv).

resolve

public XMLClassDescriptor resolve(Class type)
Returns the XMLClassDescriptor for the given class

Parameters: type the Class to find the XMLClassDescriptor for

Returns: the XMLClassDescriptor for the given class

resolve

public XMLClassDescriptor resolve(String className)
Returns the XMLClassDescriptor for the given class name

Parameters: className the class name to find the XMLClassDescriptor for

Returns: the XMLClassDescriptor for the given class name

resolve

public XMLClassDescriptor resolve(String className, ClassLoader loader)
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

resolveAllByXMLName

public ClassDescriptorEnumeration resolveAllByXMLName(String xmlName, String namespaceURI, ClassLoader loader)
Returns an enumeration of XMLClassDescriptor objects that match the given xml name

Parameters: className the class name to find the XMLClassDescriptor for loader the ClassLoader to use

Returns: an enumeration of XMLClassDescriptor objects.

resolveByXMLName

public XMLClassDescriptor 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.

Parameters: className the class name to find the XMLClassDescriptor for loader the ClassLoader to use

Returns: the XMLClassDescriptor for the given XML name

setMappingLoader

public void setMappingLoader(XMLMappingLoader xmlMappingLoader)
Sets the mapping loader for this ClassDescriptorResolver
Note: This method will be removed soon (kv).
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com