org.exolab.castor.xml
public interface XMLClassDescriptor extends ClassDescriptor
Version: $Revision: 1.2 $ $Date: 2004/12/17 05:42:04 $
Method Summary | |
---|---|
boolean | canAccept(String name, String namespace, Object object) Returns true if the given object, represented by this XMLClassDescriptor, can accept a value for the member associated with the given xml name and namespace. An XMLClassDescriptor can accept a value for a field if it contains a descriptor that matches the given xml name and namespace and if the given object can hold this field (i.e a value is not already set for this field). |
XMLFieldDescriptor[] | getAttributeDescriptors()
Returns the set of XMLFieldDescriptors for all members
that should be marshalled as XML attributes. |
XMLFieldDescriptor | getContentDescriptor()
Returns the XMLFieldDescriptor for the member
that should be marshalled as text content. |
XMLFieldDescriptor[] | getElementDescriptors()
Returns the set of XMLFieldDescriptors for all members
that should be marshalled as XML elements. |
XMLFieldDescriptor | getFieldDescriptor(String name, String namespace, NodeType nodeType)
Returns the XML field descriptor matching the given
xml name, namespace, and nodeType. |
String | getNameSpacePrefix()
Returns the namespace prefix to use when marshalling as XML.
|
String | getNameSpaceURI()
Returns the namespace URI used when marshalling and unmarshalling as XML.
|
TypeValidator | getValidator()
Returns a specific validator for the class described by
this ClassDescriptor. |
String | getXMLName()
Returns the XML Name for the Class being described.
|
Returns true if the given object, represented by this XMLClassDescriptor, can accept a value for the member associated with the given xml name and namespace.
An XMLClassDescriptor can accept a value for a field if it contains a descriptor that matches the given xml name and namespace and if the given object can hold this field (i.e a value is not already set for this field).
Parameters: name the xml name of the field to check namespace the namespace uri object the object instance represented by this XMLCLassDescriptor
Returns: true if the given object represented by this XMLClassDescriptor can accept a member whose name is given.
Returns: an array of XMLFieldDescriptors for all members that should be marshalled as XML attributes.
Returns: the XMLFieldDescriptor for the member that should be marshalled as text content.
Returns: an array of XMLFieldDescriptors for all members that should be marshalled as XML elements.
Parameters: name the xml name to match against nodeType, the NodeType to match against, or null if the node type is not known.
Returns: the matching descriptor, or null if no matching descriptor is available.
Returns: the namespace prefix to use when marshalling as XML.
Returns: the namespace URI used when marshalling and unmarshalling as XML.
Returns: the type validator for the class described by this ClassDescriptor.
Returns: the XML name.