Class PrimitivesClassDescriptor
java.lang.Object
org.exolab.castor.xml.descriptors.BaseDescriptor
org.exolab.castor.xml.descriptors.StringClassDescriptor
org.exolab.castor.xml.descriptors.PrimitivesClassDescriptor
- All Implemented Interfaces:
NatureExtendable, PropertyHolder, ClassDescriptor, XMLClassDescriptor
The default primitives class descriptor, this is only used when unmarshaling
a primitive as the "root" object.
- Version:
- $Revision: 6671 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor.Constructs a PrimitivesClassDescriptor for the given type. -
Method Summary
Methods inherited from class StringClassDescriptor
getAccessMode, getAttributeDescriptors, getContentDescriptor, getElementDescriptors, getExtends, getFieldDescriptor, getFields, getIdentity, getJavaClass, getNameSpacePrefix, getNameSpaceURI, getValidator, getXMLName, setNameSpaceURI, setValidator, setXMLNameModifier and TypeMethodDescriptionReturns the access mode specified for this class.Returns the set of attribute XMLFieldDescriptors.Returns the descriptor for dealing with Text content.Returns the set of element MarshalDescriptors.Returns the class descriptor of the class extended by this class.getFieldDescriptor(String name, String namespace, NodeType nodeType) Returns the XML field descriptor matching the given xml name and nodeType.Returns a list of fields represented by this descriptor.Returns the identity field, null if this class has no identity.Returns the Class that this ClassDescriptor describes.Returns the namespace prefix to use when marshalling as XML.Returns the namespace URI used when marshalling and unmarshalling as XML.Returns a specific validator for the class described by this ClassDescriptor.Returns the XML Name for the Class being described.voidsetNameSpaceURI(String nsURI) Sets the desired namespace URI for the described object.voidsetValidator(StringValidator validator) Sets the type validator to use to validate an instance of this type.voidsetXMLName(String xmlName) Sets the XML Name for the described object.Methods inherited from class BaseDescriptor
addNature, canAccept, checkDescriptorForCorrectOrderWithinSequence, getProperty, hasNature, isChoice, setPropertyModifier and TypeMethodDescriptionvoidAdds a specified nature.booleanReturns true if the given object represented by this XMLClassDescriptor can accept a member whose name is given.voidcheckDescriptorForCorrectOrderWithinSequence(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 definitiongetProperty(String name) Get a property by its name.booleanChecks if a specified nature has been added.booleanisChoice()Indicates whether the XML artifact described by this descriptor is a invalid input: '<'xsd:choice>.voidsetProperty(String name, Object value) Set a property specified by the name to the passed value.
-
Constructor Details
-
PrimitivesClassDescriptor
public PrimitivesClassDescriptor()No-arg constructor. -
PrimitivesClassDescriptor
Constructs a PrimitivesClassDescriptor for the given type.- Parameters:
type- a Class representing the primitive
-