NatureExtendable, PropertyHolder, ClassDescriptor, XMLClassDescriptorDateClassDescriptor, ListClassDescriptor, LocaleDescriptor, RootArrayDescriptor, SQLDateClassDescriptor, SQLTimeClassDescriptor, SQLTimestampClassDescriptor, StringClassDescriptor, VectorClassDescriptorpublic abstract class BaseDescriptor extends java.lang.Object implements XMLClassDescriptor
| Constructor | Description |
|---|---|
BaseDescriptor() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addNature(java.lang.String nature) |
Adds a specified nature.
|
boolean |
canAccept(java.lang.String name,
java.lang.String namespace,
java.lang.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,
java.lang.String xmlName) |
Checks whether the given XMLFieldDescriptor is the one actually expected,
given the natural order as defined by a sequence definition
|
java.lang.Object |
getProperty(java.lang.String name) |
Get a property by its name.
|
boolean |
hasNature(java.lang.String nature) |
Checks if a specified nature has been added.
|
boolean |
isChoice() |
Indicates whether the XML artifact described by this descriptor is a
|
void |
setProperty(java.lang.String name,
java.lang.Object value) |
Set a property specified by the name to the passed value.
|
getExtends, getFields, getIdentity, getJavaClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributeDescriptors, getContentDescriptor, getElementDescriptors, getFieldDescriptor, getNameSpacePrefix, getNameSpaceURI, getValidator, getXMLNamepublic boolean canAccept(java.lang.String name,
java.lang.String namespace,
java.lang.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, java.lang.String xmlName) throws ValidationException
checkDescriptorForCorrectOrderWithinSequence in interface XMLClassDescriptorelementDescriptor - The XML field descriptor to be checkedxmlName - TODOValidationException - If the descriptor is not the one expectedpublic boolean isChoice()
isChoice in interface XMLClassDescriptorXMLClassDescriptor.isChoice()public java.lang.Object getProperty(java.lang.String name)
PropertyHoldergetProperty in interface PropertyHoldername - of the propertypublic void setProperty(java.lang.String name,
java.lang.Object value)
PropertyHoldersetProperty in interface PropertyHoldername - of the propertyvalue - of the propertypublic void addNature(java.lang.String nature)
NatureExtendableaddNature in interface NatureExtendablenature - ID of the Naturepublic boolean hasNature(java.lang.String nature)
NatureExtendablehasNature in interface NatureExtendablenature - ID of the NatureIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com