public abstract class BaseDescriptor extends Object implements XMLClassDescriptor
| Constructor and Description |
|---|
BaseDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNature(String nature) |
boolean |
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.
|
void |
checkDescriptorForCorrectOrderWithinSequence(XMLFieldDescriptor elementDescriptor,
UnmarshalState parentState,
String xmlName)
Checks whether the given XMLFieldDescriptor is the one actually expected, given the natural
order as defined by a sequence definition
|
Object |
getProperty(String name) |
boolean |
hasNature(String nature) |
boolean |
isChoice()
Indicates whether the XML artifact described by this descriptor is a
|
void |
setProperty(String name,
Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributeDescriptors, getContentDescriptor, getElementDescriptors, getFieldDescriptor, getNameSpacePrefix, getNameSpaceURI, getValidator, getXMLNamegetExtends, getFields, getIdentity, getJavaClasspublic boolean canAccept(String name, String namespace, Object object)
This is mainly used for container object (that can contain other objects), in this particular case the implementation returns false.
canAccept in interface XMLClassDescriptorname - the name of the field to checknamespace - the namespace of the element. This may be null. Note: A null namespace is not
the same as the default namespace unless the default namespace is also null.object - the object represented by this XMLCLassDescriptorpublic void checkDescriptorForCorrectOrderWithinSequence(XMLFieldDescriptor elementDescriptor, UnmarshalState parentState, String xmlName) throws ValidationException
checkDescriptorForCorrectOrderWithinSequence in interface XMLClassDescriptorelementDescriptor - The XML field descriptor to be checkedxmlName - TODOValidationException - If the descriptor is not the one expectedcheckDescriptorForCorrectOrderWithinSequence(org.exolab.castor.xml.XMLFieldDescriptor,
org.exolab.castor.xml.UnmarshalState, java.lang.String)public boolean isChoice()
isChoice in interface XMLClassDescriptorXMLClassDescriptor.isChoice()public Object getProperty(String name)
getProperty in interface PropertyHoldername - of the propertygetProperty(java.lang.String)public void setProperty(String name, Object value)
setProperty in interface PropertyHoldername - of the propertyvalue - of the propertysetProperty(java.lang.String,
java.lang.Object)public void addNature(String nature)
addNature in interface NatureExtendablenature - ID of the NatureaddNature(java.lang.String)public boolean hasNature(String nature)
hasNature in interface NatureExtendablenature - ID of the NaturehasNature(java.lang.String)Copyright © 2016. All rights reserved.