Class XMLContainerElementFieldDescriptor
java.lang.Object
org.exolab.castor.mapping.loader.FieldDescriptorImpl
org.exolab.castor.xml.util.XMLFieldDescriptorImpl
org.exolab.castor.xml.util.XMLContainerElementFieldDescriptor
- All Implemented Interfaces:
NatureExtendable, PropertyHolder, FieldDescriptor, XMLFieldDescriptor
- Version:
- $Revision: 5951 $ $Date: 2005-12-06 14:55:28 -0700 (Tue, 06 Dec 2005) $
- Author:
- Ralf Joachim
-
Field Summary
Fields inherited from class XMLFieldDescriptorImpl
_isReferenceModifier and TypeFieldDescriptionbooleanTrue if the field is a reference to another Object in the hierarchy.Fields inherited from interface XMLFieldDescriptor
PROPERTY_XML_LANG, PROPERTY_XML_SPACE -
Constructor Summary
ConstructorsConstructorDescriptionXMLContainerElementFieldDescriptor(XMLFieldDescriptorImpl fieldDesc, NodeType primitiveNodeType) -
Method Summary
Methods inherited from class XMLFieldDescriptorImpl
equals, getComponentType, getConstructorArgumentIndex, getLocationPath, getNameSpacePrefix, getNameSpaceURI, getNodeType, getQNamePrefix, getSchemaType, getSubstitutes, getValidator, getXMLName, getXMLProperty, hashCode, isConstructorArgument, isContainer, isDerivedFromXSList, isIncremental, isMapped, isNillable, isReference, matches, matches, setComponentType, setConstructorArgumentIndex, setContainer, setDerivedFromXSList, setIncremental, setLocationPath, setMapped, setMatches, setNameSpacePrefix, setNameSpaceURI, setNillable, setNodeType, setQNamePrefix, setReference, setSchemaType, setSubstitutes, setUseParentsNamespace, setValidator, setXMLName, setXMLProperty, toStringModifier and TypeMethodDescriptionbooleanReturns true if two XMLFieldDescriptors should be treated as equal.Returns the component type of thisXMLFieldDescriptorinstance, if the field described represents a collection of values.intReturns the index within the constructor argument array where the value of this field should be.Returns the "relative" XML path for the field being described.Return the "suggested" namespace prefix to use when marshaling as XML.Returns the namespace URI to be used when marshaling and unmarshaling as XML.Returns the node type of the field being described.Returns the prefix used in case the value of the field described by this descriptor is of type QName.Returns the XML Schema type of the XML field being described.Returns the possible substitution groups for this class.Returns a specific validator for the field described by this descriptor.Returns the XML Name for the field being described.getXMLProperty(String propertyName) Returns the value property with the given name or null if no such property exists.inthashCode()Returns the hashCode for this XMLFieldDescriptorbooleanReturns true if the value of the field represented by this descriptor should be set via the constructor of the containing class.booleanReturns true if the field described by this descriptor is a container field.booleanIndicates whether the field described by thisXMLFieldDescriptorImplis created as a result of a invalid input: '<'xs:list> definition.booleanReturns the incremental flag which when true indicates that this member may be safely added before the unmarshaler is finished unmarshaling it.booleanisMapped()Returns true if the field described by this descriptor is Map or Hashtable.booleanReturns true if the field described by this descriptor may be nillable.booleanReturns true if the field described by this descriptor is a reference (ie.booleanReturns true if this descriptor can be used to handle elements or attributes with the given XML name.booleanReturns true if this descriptor can be used to handle elements or attributes with the given XML name.voidsetComponentType(String componentType) Sets the type of the XML Schema type of the value for the field being described.voidsetConstructorArgumentIndex(int index) Sets whether or not the value of the field represented by this FieldDescriptor should be set via the constructor of the containing ClassDescriptor.voidsetContainer(boolean isContainer) Set if the field is a container field or not.voidsetDerivedFromXSList(boolean derivedFromXSList) Sets whether the field described by thisXMLFieldDescriptorImplis created as a result of a invalid input: '<'xs:list> definition.voidsetIncremental(boolean incremental) Sets the incremental flag which indicates whether this member can be added before the unmarshaler is finished unmarshaling it.voidsetLocationPath(String path) Sets the location path for the field being described.voidsetMapped(boolean mapped) Sets whether or not this field has been mapped in a Map or Hashtable.voidsetMatches(String matchExpr) This is a space separated list of xml names that this Field descriptor matches.voidsetNameSpacePrefix(String nsPrefix) Sets the namespace prefix used when marshaling as XML.voidsetNameSpaceURI(String nsURI) Sets the namespace URI used when marshaling and unmarshaling as XML.voidsetNillable(boolean nillable) Sets whether or not the described field is allowed to be nil.voidsetNodeType(NodeType nodeType) Sets the XML node type for the described field.voidsetQNamePrefix(String qNamePrefix) Sets the prefix used in case the value of the field described by this descriptor is of type QName.voidsetReference(boolean isReference) Sets the flag indicating that the field described by this descriptor is a reference to another field in the object model.voidsetSchemaType(String schemaType) Sets the type of the XML Schema type of the value for the field being described.voidsetSubstitutes(List<String> substitutes) Sets the possible substitution groups for this class.voidsetUseParentsNamespace(boolean useParentsNamespace) Sets whether or not the namespace for the parent "containing" class should be used during marshaling/unmarshaling when no specific namespace URI has been set for this field.voidsetValidator(FieldValidator validator) voidsetXMLName(String xmlName) Sets the xml name for the described field.voidsetXMLProperty(String propertyName, String value) Sets the value property with the given name.toString()Methods inherited from class FieldDescriptorImpl
addNature, getClassDescriptor, getCollection, getComparator, getContainingClassDescriptor, getCreateMethod, getFieldName, getFieldType, getGetMethod, getHandler, getProperty, getSetMethod, hasNature, isDirect, isIdentity, isImmutable, isLazy, isMultivalued, isRequired, isTransient, setClassDescriptor, setCollection, setComparator, setContainingClassDescriptor, setCreateMethod, setDirect, setFieldName, setFieldType, setGetMethod, setHandler, setIdentity, setImmutable, setLazy, setMultivalued, setProperty, setRequired, setSetMethod, setTransientModifier and TypeMethodDescriptionvoidAdds a specified nature.final ClassDescriptorReturns the class descriptor related to the field type.final ClassDescriptorGet the class descriptor which contains this field.final StringReturns the name of the field.final Class<?> Returns the Java type of the field.final FieldHandlerReturns the handler of the field.getProperty(String name) Get a property by its name.booleanChecks if a specified nature has been added.booleanisDirect()final booleanIs the described field is part of the identity of the class it belongs to?final booleanReturns true if the field type is immutable.booleanisLazy()final booleanReturns true if the field is multivalued (a collection).final booleanReturns true if the field type is required.final booleanReturns true if the field is transient.final voidsetClassDescriptor(ClassDescriptor classDescriptor) Set the ClassDescriptor for the described field.voidsetCollection(FieldMappingCollectionType collection) voidsetComparator(String comparator) final voidSet the class descriptor which contains this field.voidsetCreateMethod(String createMethod) voidsetDirect(boolean direct) final voidsetFieldName(String fieldName) Set the name of the field.final voidsetFieldType(Class<?> fieldType) Set the type of the field.voidsetGetMethod(String getMethod) final voidsetHandler(FieldHandler handler) Set the FieldHandler for the field being described by this FieldDescriptor.final voidsetIdentity(boolean identity) Set wether the described field is part of the identity of the class it belongs to.final voidsetImmutable(boolean immutable) Set the immutable flag which indicates that changes to this Field result in a new Object to be created, such as java.lang.String.voidsetLazy(boolean lazy) final voidsetMultivalued(boolean multivalued) Set wheter the object described by this descriptor is multivalued or not.voidsetProperty(String name, Object value) Set a property specified by the name to the passed value.final voidsetRequired(boolean required) Set whether or not the described field is required.voidsetSetMethod(String setMethod) final voidsetTransient(boolean isTransient) Sets whether or not the describled field is 'transient'.Methods inherited from interface XMLFieldDescriptor
isMultivaluedModifier and TypeMethodDescriptionbooleanReturns true if the field described by this descriptor can contain more than one value.
-
Constructor Details
-
XMLContainerElementFieldDescriptor
public XMLContainerElementFieldDescriptor(XMLFieldDescriptorImpl fieldDesc, NodeType primitiveNodeType) throws MappingException - Throws:
MappingException
-