Class PrimaryKeyDescriptor
java.lang.Object
org.exolab.castor.xml.Validator
org.exolab.castor.xml.util.XMLClassDescriptorImpl
org.exolab.castor.xml.schema.annotations.jdo.descriptors.PkTypeDescriptor
org.exolab.castor.xml.schema.annotations.jdo.descriptors.PrimaryKeyDescriptor
- All Implemented Interfaces:
NatureExtendable
,PropertyHolder
,ClassDescriptor
,TypeValidator
,ClassValidator
,XMLClassDescriptor
Class PrimaryKeyDescriptor.
- Version:
- $Revision$ $Date$
-
Field Summary
Fields inherited from class org.exolab.castor.xml.Validator
resourceBundle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod getAccessMode.Method getIdentity.Method getJavaClass.Method getNameSpacePrefix.Method getNameSpaceURI.Method getValidator.Method getXMLName.boolean
Method isElementDefinition.Methods inherited from class org.exolab.castor.xml.util.XMLClassDescriptorImpl
addFieldDescriptor, addNature, addSequenceElement, canAccept, checkDescriptorForCorrectOrderWithinSequence, contains, getAttributeDescriptors, getContentDescriptor, getElementDescriptors, getExtends, getFieldDescriptor, getFields, getProperty, getSubstitutes, hasContainerFields, hasNature, isChoice, removeFieldDescriptor, setCompositorAsAll, setCompositorAsChoice, setCompositorAsSequence, setElementDefinition, setExtends, setExtendsWithoutFlatten, setIdentity, setIntrospected, setJavaClass, setNameSpacePrefix, setNameSpaceURI, setProperty, setSubstitutes, setXMLName, sortDescriptors, toString, validate, validate
Methods inherited from class org.exolab.castor.xml.Validator
checkUnresolvedIdrefs
-
Constructor Details
-
PrimaryKeyDescriptor
public PrimaryKeyDescriptor()
-
-
Method Details
-
getAccessMode
Method getAccessMode.- Overrides:
getAccessMode
in classPkTypeDescriptor
- Returns:
- the access mode specified for this class.
-
getIdentity
Method getIdentity.- Specified by:
getIdentity
in interfaceClassDescriptor
- Overrides:
getIdentity
in classPkTypeDescriptor
- Returns:
- the identity field, null if this class has no identity.
-
getJavaClass
Method getJavaClass.- Specified by:
getJavaClass
in interfaceClassDescriptor
- Overrides:
getJavaClass
in classPkTypeDescriptor
- Returns:
- the Java class represented by this descriptor.
-
getNameSpacePrefix
Method getNameSpacePrefix.- Specified by:
getNameSpacePrefix
in interfaceXMLClassDescriptor
- Overrides:
getNameSpacePrefix
in classPkTypeDescriptor
- Returns:
- the namespace prefix to use when marshaling as XML.
-
getNameSpaceURI
Method getNameSpaceURI.- Specified by:
getNameSpaceURI
in interfaceXMLClassDescriptor
- Overrides:
getNameSpaceURI
in classPkTypeDescriptor
- Returns:
- the namespace URI used when marshaling and unmarshaling as XML.
-
getValidator
Method getValidator.- Specified by:
getValidator
in interfaceXMLClassDescriptor
- Overrides:
getValidator
in classPkTypeDescriptor
- Returns:
- a specific validator for the class described by this ClassDescriptor.
-
getXMLName
Method getXMLName.- Specified by:
getXMLName
in interfaceXMLClassDescriptor
- Overrides:
getXMLName
in classPkTypeDescriptor
- Returns:
- the XML Name for the Class being described.
-
isElementDefinition
public boolean isElementDefinition()Method isElementDefinition.- Overrides:
isElementDefinition
in classPkTypeDescriptor
- Returns:
- true if XML schema definition of this Class is that of a global element or element with anonymous type definition.
-