Public Member Functions | |
RootArrayDescriptor (Class array) | |
XMLFieldDescriptor[] | getAttributeDescriptors () |
Class | getJavaClass () |
XMLFieldDescriptor[] | getElementDescriptors () |
ClassDescriptor | getExtends () |
FieldDescriptor[] | getFields () |
XMLFieldDescriptor | getContentDescriptor () |
XMLFieldDescriptor | getFieldDescriptor (String name, String namespace, NodeType nodeType) |
String | getNameSpacePrefix () |
String | getNameSpaceURI () |
FieldDescriptor | getIdentity () |
AccessMode | getAccessMode () |
TypeValidator | getValidator () |
String | getXMLName () |
void | setXMLName (String xmlName) |
void | setNameSpaceURI (String nsURI) |
boolean | canAccept (String name, String namespace, Object object) |
The default class descriptor for Arrays that are passed in as the root-level class.
org.exolab.castor.xml.descriptors.RootArrayDescriptor.RootArrayDescriptor | ( | Class | array | ) |
boolean org.exolab.castor.xml.descriptors.RootArrayDescriptor.canAccept | ( | String | name, | |
String | namespace, | |||
Object | object | |||
) |
Returns true if the given object represented by this XMLClassDescriptor can accept a member whose name is given. An XMLClassDescriptor can accept a field if it contains a descriptor that matches the given name and if the given object can hold this field (i.e a value is not already set for this field).
This is mainly used for container object (that can contains other object), in this particular case the implementation will return null.
name | the xml name of the field to check | |
namespace | the namespace uri | |
object | the object represented by this XMLCLassDescriptor |
Implements org.exolab.castor.xml.XMLClassDescriptor.
AccessMode org.exolab.castor.xml.descriptors.RootArrayDescriptor.getAccessMode | ( | ) |
Returns the access mode specified for this class.
Implements org.exolab.castor.mapping.ClassDescriptor.
XMLFieldDescriptor [] org.exolab.castor.xml.descriptors.RootArrayDescriptor.getAttributeDescriptors | ( | ) |
Returns the set of attribute XMLFieldDescriptors
Implements org.exolab.castor.xml.XMLClassDescriptor.
XMLFieldDescriptor org.exolab.castor.xml.descriptors.RootArrayDescriptor.getContentDescriptor | ( | ) |
Returns the descriptor for dealing with Text content
Implements org.exolab.castor.xml.XMLClassDescriptor.
XMLFieldDescriptor [] org.exolab.castor.xml.descriptors.RootArrayDescriptor.getElementDescriptors | ( | ) |
Returns the set of element MarshalDescriptors
Implements org.exolab.castor.xml.XMLClassDescriptor.
ClassDescriptor org.exolab.castor.xml.descriptors.RootArrayDescriptor.getExtends | ( | ) |
Returns the class descriptor of the class extended by this class.
Implements org.exolab.castor.mapping.ClassDescriptor.
XMLFieldDescriptor org.exolab.castor.xml.descriptors.RootArrayDescriptor.getFieldDescriptor | ( | String | name, | |
String | namespace, | |||
NodeType | nodeType | |||
) |
Returns the XML field descriptor matching the given xml name and nodeType. If NodeType is null, then either an AttributeDescriptor, or ElementDescriptor may be returned. Null is returned if no matching descriptor is available.
name | the xml name to match against | |
namespace | the namespace uri | |
nodeType,the | NodeType to match against, or null if the node type is not known. |
Implements org.exolab.castor.xml.XMLClassDescriptor.
FieldDescriptor [] org.exolab.castor.xml.descriptors.RootArrayDescriptor.getFields | ( | ) |
Returns a list of fields represented by this descriptor.
Implements org.exolab.castor.mapping.ClassDescriptor.
FieldDescriptor org.exolab.castor.xml.descriptors.RootArrayDescriptor.getIdentity | ( | ) |
Returns the identity field, null if this class has no identity.
Implements org.exolab.castor.mapping.ClassDescriptor.
Class org.exolab.castor.xml.descriptors.RootArrayDescriptor.getJavaClass | ( | ) |
Returns the Class that this ClassDescriptor describes
Implements org.exolab.castor.mapping.ClassDescriptor.
String org.exolab.castor.xml.descriptors.RootArrayDescriptor.getNameSpacePrefix | ( | ) |
Implements org.exolab.castor.xml.XMLClassDescriptor.
String org.exolab.castor.xml.descriptors.RootArrayDescriptor.getNameSpaceURI | ( | ) |
Implements org.exolab.castor.xml.XMLClassDescriptor.
TypeValidator org.exolab.castor.xml.descriptors.RootArrayDescriptor.getValidator | ( | ) |
Returns a specific validator for the class described by this ClassDescriptor. A null value may be returned if no specific validator exists.
Implements org.exolab.castor.xml.XMLClassDescriptor.
String org.exolab.castor.xml.descriptors.RootArrayDescriptor.getXMLName | ( | ) |
Returns the XML Name for the Class being described.
Implements org.exolab.castor.xml.XMLClassDescriptor.
void org.exolab.castor.xml.descriptors.RootArrayDescriptor.setNameSpaceURI | ( | String | nsURI | ) |
Sets the desired namespace URI for the described object
nsURI | is the desired namespace URI |
void org.exolab.castor.xml.descriptors.RootArrayDescriptor.setXMLName | ( | String | xmlName | ) |
Sets the XML Name for the described object.
xmlName | the XML name to use for the described object. |