org.exolab.castor.xml.util

Class XMLClassDescriptorAdapter

Implemented Interfaces:
ClassDescriptor, ClassValidator, TypeValidator, XMLClassDescriptor

public class XMLClassDescriptorAdapter
extends XMLClassDescriptorImpl

An adapter class which can turn an ordinary ClassDescriptor into an XMLClassDescriptor.
Version:
$Revision: 7359 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Keith Visco

Constructor Summary

XMLClassDescriptorAdapter()
Protected constructor used by this class, and subclasses only
XMLClassDescriptorAdapter(ClassDescriptor classDesc, String xmlName)
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.
XMLClassDescriptorAdapter(ClassDescriptor classDesc, 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, addSequenceElement, canAccept, checkDescriptorForCorrectOrderWithinSequence, contains, getAccessMode, getAttributeDescriptors, getContentDescriptor, getElementDescriptors, getExtends, getFieldDescriptor, getFields, getIdentity, getJavaClass, getNameSpacePrefix, getNameSpaceURI, getSubstitutes, getValidator, getXMLName, hasContainerFields, isChoice, isDefaultPrimitiveValue, isElementDefinition, isPrimitive, removeFieldDescriptor, setCompositorAsAll, setCompositorAsChoice, setCompositorAsSequence, setElementDefinition, setExtends, setExtendsWithoutFlatten, setIdentity, setIntrospected, setJavaClass, setNameSpacePrefix, setNameSpaceURI, setSubstitutes, setXMLName, sortDescriptors, toString, toXMLName, validate, validate

Methods inherited from class org.exolab.castor.xml.Validator

checkUnresolvedIdrefs, validate, validate

Constructor Details

XMLClassDescriptorAdapter

public XMLClassDescriptorAdapter()
Protected constructor used by this class, and subclasses only

XMLClassDescriptorAdapter

public XMLClassDescriptorAdapter(ClassDescriptor classDesc,
                                 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

XMLClassDescriptorAdapter

public XMLClassDescriptorAdapter(ClassDescriptor classDesc,
                                 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 class
primitiveNodeType - the NodeType to use for primitives

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com