Package org.exolab.castor.xml.util
Class XMLClassDescriptorAdapter
- java.lang.Object
-
- org.exolab.castor.xml.Validator
-
- org.exolab.castor.xml.util.XMLClassDescriptorImpl
-
- org.exolab.castor.xml.util.XMLClassDescriptorAdapter
-
- All Implemented Interfaces:
NatureExtendable
,PropertyHolder
,ClassDescriptor
,TypeValidator
,ClassValidator
,XMLClassDescriptor
public class XMLClassDescriptorAdapter extends XMLClassDescriptorImpl
An adapter class which can turn an ordinary ClassDescriptor into an XMLClassDescriptor.- Version:
- $Revision: 7436 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Keith Visco
-
-
Field Summary
-
Fields inherited from class org.exolab.castor.xml.Validator
resourceBundle
-
-
Constructor Summary
Constructors Constructor Description XMLClassDescriptorAdapter()
XMLClassDescriptorAdapter(ClassDescriptor classDesc, java.lang.String xmlName)
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.XMLClassDescriptorAdapter(ClassDescriptor classDesc, java.lang.String xmlName, NodeType primitiveNodeType)
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.
-
Method Summary
-
Methods inherited from class org.exolab.castor.xml.util.XMLClassDescriptorImpl
addFieldDescriptor, addNature, addSequenceElement, canAccept, checkDescriptorForCorrectOrderWithinSequence, contains, getAccessMode, getAttributeDescriptors, getContentDescriptor, getElementDescriptors, getExtends, getFieldDescriptor, getFields, getIdentity, getJavaClass, getNameSpacePrefix, getNameSpaceURI, getProperty, getSubstitutes, getValidator, getXMLName, hasContainerFields, hasNature, isChoice, isDefaultPrimitiveValue, isElementDefinition, isPrimitive, 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 Detail
-
XMLClassDescriptorAdapter
public XMLClassDescriptorAdapter()
-
XMLClassDescriptorAdapter
public XMLClassDescriptorAdapter(ClassDescriptor classDesc, java.lang.String xmlName) throws MappingException
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.- Parameters:
classDesc
- the ClassDescriptor to "adapt"xmlName
- the XML name for the class- Throws:
MappingException
-
XMLClassDescriptorAdapter
public XMLClassDescriptorAdapter(ClassDescriptor classDesc, java.lang.String xmlName, NodeType primitiveNodeType) throws MappingException
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.- Parameters:
classDesc
- the ClassDescriptor to "adapt"xmlName
- the XML name for the classprimitiveNodeType
- the NodeType to use for primitives- Throws:
MappingException
-
-