Public Member Functions | Protected Member Functions | Static Package Functions

org.exolab.castor.xml.util.XMLClassDescriptorImpl Class Reference

Inheritance diagram for org.exolab.castor.xml.util.XMLClassDescriptorImpl:
org.exolab.castor.xml.Validator org.exolab.castor.xml.XMLClassDescriptor org.exolab.castor.xml.ClassValidator org.exolab.castor.mapping.ClassDescriptor org.exolab.castor.xml.TypeValidator alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor alma.tools.entitybuilder.generated.EntitySchemaDescriptor alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor org.exolab.castor.builder.binding.BindingDescriptor org.exolab.castor.builder.binding.ClassTypeDescriptor org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor org.exolab.castor.builder.binding.FieldTypeDescriptor org.exolab.castor.builder.binding.IncludeTypeDescriptor org.exolab.castor.builder.binding.InterfaceDescriptor org.exolab.castor.builder.binding.NamingTypeDescriptor org.exolab.castor.builder.binding.NamingXMLTypeDescriptor org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor org.exolab.castor.builder.binding.PackageTypeDescriptor org.exolab.castor.builder.binding.PathTypeDescriptor org.exolab.castor.builder.binding.types.BindingTypeDescriptor org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor org.exolab.castor.mapping.xml.BindXmlDescriptor org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor org.exolab.castor.mapping.xml.ClassMappingDescriptor org.exolab.castor.mapping.xml.ContainerDescriptor org.exolab.castor.mapping.xml.FieldMappingDescriptor org.exolab.castor.mapping.xml.IncludeDescriptor org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor org.exolab.castor.mapping.xml.LdapDescriptor org.exolab.castor.mapping.xml.MappingRootDescriptor org.exolab.castor.mapping.xml.MapToDescriptor org.exolab.castor.mapping.xml.ParamDescriptor org.exolab.castor.mapping.xml.PropertyTypeDescriptor org.exolab.castor.mapping.xml.SqlDescriptor org.exolab.castor.mapping.xml.types.AccessTypeDescriptor org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor org.exolab.castor.mapping.xml.types.TypeTypeDescriptor org.exolab.castor.xml.descriptors.EnumerationDescriptor org.exolab.castor.xml.IntrospectedXMLClassDescriptor org.exolab.castor.xml.util.XMLClassDescriptorAdapter

List of all members.

Public Member Functions

 XMLClassDescriptorImpl (Class type)
 XMLClassDescriptorImpl (Class type, String xmlName)
void addFieldDescriptor (XMLFieldDescriptor descriptor)
boolean contains (XMLFieldDescriptor descriptor)
XMLFieldDescriptor[] getAttributeDescriptors ()
XMLFieldDescriptor getContentDescriptor ()
XMLFieldDescriptor[] getElementDescriptors ()
XMLFieldDescriptor getFieldDescriptor (String name, String namespace, NodeType nodeType)
String getNameSpacePrefix ()
String getNameSpaceURI ()
TypeValidator getValidator ()
String getXMLName ()
boolean hasContainerFields ()
boolean removeFieldDescriptor (XMLFieldDescriptor descriptor)
void setCompositorAsAll ()
void setCompositorAsChoice ()
void setCompositorAsSequence ()
void setExtends (XMLClassDescriptor classDesc)
void setIdentity (XMLFieldDescriptor fieldDesc)
void setNameSpacePrefix (String nsPrefix)
void setNameSpaceURI (String nsURI)
void setXMLName (String xmlName)
void sortDescriptors ()
String toString ()
void validate (Object object) throws ValidationException
void validate (Object object, ValidationContext context) throws ValidationException
Class getJavaClass ()
FieldDescriptor[] getFields ()
ClassDescriptor getExtends ()
FieldDescriptor getIdentity ()
AccessMode getAccessMode ()
boolean canAccept (String name, String namespace, Object object)

Protected Member Functions

 XMLClassDescriptorImpl ()
void setJavaClass (Class type)
void setExtendsWithoutFlatten (XMLClassDescriptor classDesc)
void setIntrospected (boolean introspected)
String toXMLName (String className)

Static Package Functions

 [static initializer]
static boolean isPrimitive (Class type)
static boolean isDefaultPrimitiveValue (Object value)

Detailed Description

The core implementation of XMLClassDescriptor. This class is used by both generated source code as well as the XMLMappingLoader.

Author:
Keith Visco
Version:
Revision:
1.8
Date:
2004/12/17 05:47:37

Constructor & Destructor Documentation

org.exolab.castor.xml.util.XMLClassDescriptorImpl.XMLClassDescriptorImpl ( Class  type  ) 

Creates an XMLClassDescriptor class used by the Marshalling Framework.

Parameters:
type the Class type with which this ClassDescriptor describes.

References org.exolab.castor.xml.util.XMLClassDescriptorImpl.setXMLName().

org.exolab.castor.xml.util.XMLClassDescriptorImpl.XMLClassDescriptorImpl ( Class  type,
String  xmlName 
)

Creates an XMLClassDescriptor class used by the Marshalling Framework.

Parameters:
type the Class type with which this ClassDescriptor describes.

References org.exolab.castor.xml.util.XMLClassDescriptorImpl.setXMLName().

org.exolab.castor.xml.util.XMLClassDescriptorImpl.XMLClassDescriptorImpl (  )  [protected]

Protected constructor used by this class, and subclasses only


Member Function Documentation

org.exolab.castor.xml.util.XMLClassDescriptorImpl.[static initializer] (  )  [static, package]

Static initializer

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.addFieldDescriptor ( XMLFieldDescriptor  descriptor  ) 

Adds the given XMLFieldDescriptor to the list of descriptors. The descriptor will be added to the appropriate list by calling XMLFieldDescriptor.getNodeType() to determine it's type.

Parameters:
descriptor the XMLFieldDescriptor to add

Referenced by org.exolab.castor.builder.binding.BindingDescriptor.BindingDescriptor(), org.exolab.castor.mapping.xml.BindXmlDescriptor.BindXmlDescriptor(), org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor.CacheTypeMappingDescriptor(), org.exolab.castor.mapping.xml.ClassMappingDescriptor.ClassMappingDescriptor(), org.exolab.castor.builder.binding.ClassTypeDescriptor.ClassTypeDescriptor(), org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor.ComponentBindingTypeChoiceDescriptor(), org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor.ComponentBindingTypeDescriptor(), alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor.ComponentHelperInfoDescriptor(), alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor.ComponentInterfaceDescriptor(), org.exolab.castor.mapping.xml.ContainerDescriptor.ContainerDescriptor(), org.exolab.castor.xml.XMLMappingLoader.createDescriptor(), alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor.EntitybuilderSettingsDescriptor(), alma.tools.entitybuilder.generated.EntitySchemaDescriptor.EntitySchemaDescriptor(), org.exolab.castor.xml.descriptors.EnumerationDescriptor.EnumerationDescriptor(), org.exolab.castor.mapping.xml.FieldMappingDescriptor.FieldMappingDescriptor(), org.exolab.castor.builder.binding.FieldTypeDescriptor.FieldTypeDescriptor(), org.exolab.castor.xml.Introspector.generateClassDescriptor(), org.exolab.castor.mapping.xml.IncludeDescriptor.IncludeDescriptor(), org.exolab.castor.builder.binding.IncludeTypeDescriptor.IncludeTypeDescriptor(), org.exolab.castor.builder.binding.InterfaceDescriptor.InterfaceDescriptor(), org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor.KeyGeneratorDefDescriptor(), org.exolab.castor.mapping.xml.LdapDescriptor.LdapDescriptor(), org.exolab.castor.mapping.xml.MappingRootDescriptor.MappingRootDescriptor(), org.exolab.castor.mapping.xml.MapToDescriptor.MapToDescriptor(), org.exolab.castor.builder.binding.NamingTypeDescriptor.NamingTypeDescriptor(), org.exolab.castor.builder.binding.NamingXMLTypeDescriptor.NamingXMLTypeDescriptor(), org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor.PackageTypeChoiceDescriptor(), org.exolab.castor.builder.binding.PackageTypeDescriptor.PackageTypeDescriptor(), org.exolab.castor.mapping.xml.ParamDescriptor.ParamDescriptor(), org.exolab.castor.mapping.xml.PropertyTypeDescriptor.PropertyTypeDescriptor(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.setExtends(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.setIdentity(), org.exolab.castor.mapping.xml.SqlDescriptor.SqlDescriptor(), and alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor.XmlNamespace2JPackageDescriptor().

boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.canAccept ( String  name,
String  namespace,
Object  object 
)

Returns true if the given object, represented by this XMLClassDescriptor, can accept a value for the member associated with the given xml name and namespace.

An XMLClassDescriptor can accept a value for a field if it contains a descriptor that matches the given xml name and namespace and if the given object can hold this field (i.e a value is not already set for this field).

Parameters:
name the xml name of the field to check
namespace the namespace uri
object the object instance represented by this XMLCLassDescriptor
Returns:
true if the given object represented by this XMLClassDescriptor can accept a member whose name is given.

Implements org.exolab.castor.xml.XMLClassDescriptor.

References org.exolab.castor.xml.NodeType.Element, org.exolab.castor.mapping.FieldDescriptor.getClassDescriptor(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor(), org.exolab.castor.mapping.FieldDescriptor.getFieldType(), org.exolab.castor.mapping.FieldDescriptor.getHandler(), org.exolab.castor.xml.FieldValidator.getMaxOccurs(), org.exolab.castor.xml.XMLFieldDescriptor.getNodeType(), org.exolab.castor.xml.XMLFieldDescriptor.getValidator(), org.exolab.castor.mapping.FieldHandler.getValue(), org.exolab.castor.xml.XMLFieldDescriptor.isContainer(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.isDefaultPrimitiveValue(), and org.exolab.castor.xml.XMLFieldDescriptor.isMultivalued().

boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.contains ( XMLFieldDescriptor  descriptor  ) 

Returns true if the given XMLFieldDescriptor is contained within this XMLClassDescriptor.

Returns:
true if the XMLFieldDescriptor is part of this XMLClassDescriptor, otherwise false.

References org.exolab.castor.xml.util.XMLFieldDescriptors.contains().

AccessMode org.exolab.castor.xml.util.XMLClassDescriptorImpl.getAccessMode (  ) 

Returns the access mode specified for this class.

Returns:
The access mode

Implements org.exolab.castor.mapping.ClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

XMLFieldDescriptor [] org.exolab.castor.xml.util.XMLClassDescriptorImpl.getAttributeDescriptors (  ) 

Returns the set of XMLFieldDescriptors for all members that should be marshalled as XML attributes.

Returns:
an array of XMLFieldDescriptors for all members that should be marshalled as XML attributes.

Implements org.exolab.castor.xml.XMLClassDescriptor.

XMLFieldDescriptor org.exolab.castor.xml.util.XMLClassDescriptorImpl.getContentDescriptor (  ) 

Returns the XMLFieldDescriptor for the member that should be marshalled as text content.

Returns:
the XMLFieldDescriptor for the member that should be marshalled as text content.

Implements org.exolab.castor.xml.XMLClassDescriptor.

XMLFieldDescriptor [] org.exolab.castor.xml.util.XMLClassDescriptorImpl.getElementDescriptors (  ) 

Returns the set of XMLFieldDescriptors for all members that should be marshalled as XML elements.

Returns:
an array of XMLFieldDescriptors for all members that should be marshalled as XML elements.

Implements org.exolab.castor.xml.XMLClassDescriptor.

ClassDescriptor org.exolab.castor.xml.util.XMLClassDescriptorImpl.getExtends (  ) 

Returns the class descriptor of the class extended by this class.

Returns:
The extended class descriptor

Implements org.exolab.castor.mapping.ClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

XMLFieldDescriptor org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFieldDescriptor ( String  name,
String  namespace,
NodeType  nodeType 
)

Returns the XML field descriptor matching the given xml name and nodeType. If NodeType is null, then either an AttributeDescriptor, or ElementDescriptor may be returned. Null is returned if no matching descriptor is available.

If an field is matched in one of the container field, it will return the container field that contain the field named 'name'

Parameters:
name the xml name to match against
nodeType,the NodeType to match against, or null if the node type is not known.
Returns:
the matching descriptor, or null if no matching descriptor is available.

Implements org.exolab.castor.xml.XMLClassDescriptor.

References org.exolab.castor.xml.NodeType.Attribute, org.exolab.castor.xml.NodeType.Element, org.exolab.castor.mapping.FieldDescriptor.getClassDescriptor(), org.exolab.castor.xml.XMLClassDescriptor.getFieldDescriptor(), org.exolab.castor.xml.XMLFieldDescriptor.getXMLName(), org.exolab.castor.xml.XMLFieldDescriptor.isContainer(), org.exolab.castor.xml.XMLFieldDescriptor.matches(), and org.exolab.castor.xml.NodeType.Namespace.

Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.canAccept().

FieldDescriptor [] org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFields (  ) 
FieldDescriptor org.exolab.castor.xml.util.XMLClassDescriptorImpl.getIdentity (  ) 

Returns the identity field, null if this class has no identity.

Returns:
The identity field

Implements org.exolab.castor.mapping.ClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

Class org.exolab.castor.xml.util.XMLClassDescriptorImpl.getJavaClass (  ) 

Returns the Java class represented by this descriptor.

Returns:
The Java class

Implements org.exolab.castor.mapping.ClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

Referenced by org.exolab.castor.xml.XMLMappingLoader.createDescriptor(), and org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate().

String org.exolab.castor.xml.util.XMLClassDescriptorImpl.getNameSpacePrefix (  ) 
Returns:
the namespace prefix to use when marshalling as XML.

Implements org.exolab.castor.xml.XMLClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

String org.exolab.castor.xml.util.XMLClassDescriptorImpl.getNameSpaceURI (  ) 
Returns:
the namespace URI used when marshalling and unmarshalling as XML.

Implements org.exolab.castor.xml.XMLClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

TypeValidator org.exolab.castor.xml.util.XMLClassDescriptorImpl.getValidator (  ) 

Returns a specific validator for the class described by this ClassDescriptor. A null value may be returned if no specific validator exists.

Returns:
the type validator for the class described by this ClassDescriptor.

Implements org.exolab.castor.xml.XMLClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

String org.exolab.castor.xml.util.XMLClassDescriptorImpl.getXMLName (  ) 

Returns the XML Name for the Class being described.

Returns:
the XML name.

Implements org.exolab.castor.xml.XMLClassDescriptor.

Reimplemented in alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor, alma.acs.tools.comphelpergen.generated.ComponentInterfaceDescriptor, alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor, alma.tools.entitybuilder.generated.EntitySchemaDescriptor, alma.tools.entitybuilder.generated.XmlNamespace2JPackageDescriptor, org.exolab.castor.builder.binding.BindingDescriptor, org.exolab.castor.builder.binding.ClassTypeDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor, org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor, org.exolab.castor.builder.binding.FieldTypeDescriptor, org.exolab.castor.builder.binding.IncludeTypeDescriptor, org.exolab.castor.builder.binding.InterfaceDescriptor, org.exolab.castor.builder.binding.NamingTypeDescriptor, org.exolab.castor.builder.binding.NamingXMLTypeDescriptor, org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor, org.exolab.castor.builder.binding.PackageTypeDescriptor, org.exolab.castor.builder.binding.PathTypeDescriptor, org.exolab.castor.builder.binding.types.BindingTypeDescriptor, org.exolab.castor.builder.binding.types.FieldTypeCollectionTypeDescriptor, org.exolab.castor.mapping.xml.BindXmlDescriptor, org.exolab.castor.mapping.xml.CacheTypeMappingDescriptor, org.exolab.castor.mapping.xml.ClassMappingDescriptor, org.exolab.castor.mapping.xml.ContainerDescriptor, org.exolab.castor.mapping.xml.FieldMappingDescriptor, org.exolab.castor.mapping.xml.IncludeDescriptor, org.exolab.castor.mapping.xml.KeyGeneratorDefDescriptor, org.exolab.castor.mapping.xml.LdapDescriptor, org.exolab.castor.mapping.xml.MappingRootDescriptor, org.exolab.castor.mapping.xml.MapToDescriptor, org.exolab.castor.mapping.xml.ParamDescriptor, org.exolab.castor.mapping.xml.PropertyDescriptor, org.exolab.castor.mapping.xml.PropertyTypeDescriptor, org.exolab.castor.mapping.xml.SqlDescriptor, org.exolab.castor.mapping.xml.types.AccessTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlAutoNamingTypeDescriptor, org.exolab.castor.mapping.xml.types.BindXmlNodeTypeDescriptor, org.exolab.castor.mapping.xml.types.CollectionTypeDescriptor, org.exolab.castor.mapping.xml.types.DirtyTypeDescriptor, and org.exolab.castor.mapping.xml.types.TypeTypeDescriptor.

Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate().

boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.hasContainerFields (  ) 

Returns true if this XMLClassDescriptorImpl has any fields which are container objects. A container object is a Java object which holds data the should be marshalled, but the object itself should not be. So the container object will be "unwrapped" and the fields associated with the container will appear as if they were part of this class.

Returns:
true if any of the fields are container fields, otherwise false.
static boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.isDefaultPrimitiveValue ( Object  value  )  [static, package]

Checks to see if the given Object is a java primitive (does not check for primitive wrappers) and has a value that is equal to the default value for that primitive. This method will return true if the value is a java primitive with a default value.

Returns:
true if the value is a java primitive with a default value

Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.canAccept().

static boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.isPrimitive ( Class  type  )  [static, package]

Returns true if the given class should be treated as a primitive type. This method will return true for all Java primitive types, the set of primitive object wrappers, as well as Strings.

Returns:
true if the given class should be treated as a primitive type
boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.removeFieldDescriptor ( XMLFieldDescriptor  descriptor  ) 
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setCompositorAsAll (  ) 

Sets the compositor for the fields of the described class to be ALL.

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setCompositorAsChoice (  ) 
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setExtendsWithoutFlatten ( XMLClassDescriptor  classDesc  )  [protected]
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setIdentity ( XMLFieldDescriptor  fieldDesc  ) 

Sets the Identity FieldDescriptor, if the FieldDescriptor is not already a contained in this ClassDescriptor, it will be added

References org.exolab.castor.xml.util.XMLClassDescriptorImpl.addFieldDescriptor(), and org.exolab.castor.xml.util.XMLFieldDescriptors.contains().

Referenced by org.exolab.castor.xml.XMLMappingLoader.createDescriptor().

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setIntrospected ( boolean  introspected  )  [protected]

Sets a flag to indicate whether or not this XMLClassDescriptorImpl was created via introspection

Parameters:
introspected a boolean, when true indicated that this XMLClassDescriptor was created via introspection

Referenced by org.exolab.castor.xml.IntrospectedXMLClassDescriptor.IntrospectedXMLClassDescriptor().

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setJavaClass ( Class  type  )  [protected]

Sets the Class type being described by this descriptor.

the Class type being described

Referenced by org.exolab.castor.xml.util.XMLClassDescriptorAdapter.XMLClassDescriptorAdapter().

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setNameSpacePrefix ( String  nsPrefix  ) 

Sets the namespace prefix used when marshalling as XML.

Parameters:
nsPrefix the namespace prefix used when marshalling the "described" object

Referenced by org.exolab.castor.xml.XMLMappingLoader.createDescriptor().

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setNameSpaceURI ( String  nsURI  ) 

Sets the namespace URI used when marshalling and unmarshalling as XML.

Parameters:
nsURI the namespace URI used when marshalling and unmarshalling the "described" Object.

Referenced by org.exolab.castor.xml.XMLMappingLoader.createDescriptor().

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setXMLName ( String  xmlName  ) 

Sets the validator to use for the class described by this ClassDescriptor

Parameters:
validator the validator to use when peforming validation of the described class. This may be null to signal default validation. Sets the XML name for the Class described by this XMLClassDescriptor
xmlName the XML name for the Class described by this XMLClassDescriptor

References org.exolab.castor.xml.util.XMLClassDescriptorImpl.toXMLName().

Referenced by org.exolab.castor.xml.util.XMLClassDescriptorAdapter.XMLClassDescriptorAdapter(), and org.exolab.castor.xml.util.XMLClassDescriptorImpl.XMLClassDescriptorImpl().

void org.exolab.castor.xml.util.XMLClassDescriptorImpl.sortDescriptors (  ) 

This method is used to keep the set of descriptors in the proper sorted lists. If you dynamically change the NodeType of an XMLFieldDescriptor after adding it the this ClassDescriptor, then call this method.

References org.exolab.castor.xml.util.XMLFieldDescriptors.add(), org.exolab.castor.xml.XMLFieldDescriptor.getNodeType(), org.exolab.castor.xml.NodeType.getType(), and org.exolab.castor.xml.util.XMLFieldDescriptors.remove().

Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.setExtends().

String org.exolab.castor.xml.util.XMLClassDescriptorImpl.toString (  ) 

Returns the String representation of this XMLClassDescriptor

Returns:
the String representation of this XMLClassDescriptor
String org.exolab.castor.xml.util.XMLClassDescriptorImpl.toXMLName ( String  className  )  [protected]
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate ( Object  object  )  throws ValidationException

Validates the given Object

Parameters:
object the Object to validate

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties