org.exolab.castor.xml.util
Class XMLClassDescriptorAdapter

java.lang.Object
  extended by org.exolab.castor.xml.Validator
      extended by org.exolab.castor.xml.util.XMLClassDescriptorImpl
          extended by org.exolab.castor.xml.util.XMLClassDescriptorAdapter
All 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: 1.2 $ $Date: 2003/03/03 09:57:20 $
Author:
Keith Visco

Constructor Summary
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, canAccept, contains, getAccessMode, getAttributeDescriptors, getContentDescriptor, getElementDescriptors, getExtends, getFieldDescriptor, getFields, getIdentity, getJavaClass, getNameSpacePrefix, getNameSpaceURI, getValidator, getXMLName, hasContainerFields, isDefaultPrimitiveValue, isPrimitive, removeFieldDescriptor, setCompositorAsAll, setCompositorAsChoice, setCompositorAsSequence, setExtends, setExtendsWithoutFlatten, setIdentity, setIntrospected, setJavaClass, setNameSpacePrefix, setNameSpaceURI, setXMLName, sortDescriptors, toString, toXMLName, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 class
primitiveNodeType - the NodeType to use for primitives
Throws:
MappingException


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