The core implementation of XMLClassDescriptor. This class is used by both generated source code as well as the XMLMappingLoader.
org.exolab.castor.xml.util.XMLClassDescriptorImpl.XMLClassDescriptorImpl | ( | Class | type | ) |
Creates an XMLClassDescriptor class used by the Marshalling Framework.
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.
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
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.
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).
name | the xml name of the field to check | |
namespace | the namespace uri | |
object | the object instance represented by this XMLCLassDescriptor |
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.
References org.exolab.castor.xml.util.XMLFieldDescriptors.contains().
AccessMode org.exolab.castor.xml.util.XMLClassDescriptorImpl.getAccessMode | ( | ) |
Returns the access mode specified for this 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.
XMLFieldDescriptor [] org.exolab.castor.xml.util.XMLClassDescriptorImpl.getAttributeDescriptors | ( | ) |
Returns the set 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.
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.
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.
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'
name | the xml name to match against | |
nodeType,the | NodeType to match against, or null if the node type is not known. |
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 | ( | ) |
Returns a list of fields represented by this descriptor.
Implements org.exolab.castor.mapping.ClassDescriptor.
References org.exolab.castor.xml.util.XMLFieldDescriptors.size(), and org.exolab.castor.xml.util.XMLFieldDescriptors.toArray().
Referenced by org.exolab.castor.xml.XMLMappingLoader.createDescriptor().
FieldDescriptor org.exolab.castor.xml.util.XMLClassDescriptorImpl.getIdentity | ( | ) |
Returns the identity field, null if this class has no identity.
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.
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 | ( | ) |
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 | ( | ) |
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.
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.
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.
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.
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.
boolean org.exolab.castor.xml.util.XMLClassDescriptorImpl.removeFieldDescriptor | ( | XMLFieldDescriptor | descriptor | ) |
Removes the given XMLFieldDescriptor from the list of descriptors.
descriptor | the XMLFieldDescriptor to remove |
References org.exolab.castor.xml.XMLFieldDescriptor.getNodeType(), org.exolab.castor.xml.NodeType.getType(), org.exolab.castor.xml.XMLFieldDescriptor.isContainer(), org.exolab.castor.xml.NodeType.NAMESPACE, and org.exolab.castor.xml.util.XMLFieldDescriptors.remove().
Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.setExtends().
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 | ( | ) |
Sets the compositor for the fields of the described class to be CHOICE.
Referenced by org.exolab.castor.builder.binding.ComponentBindingTypeChoiceDescriptor.ComponentBindingTypeChoiceDescriptor(), and org.exolab.castor.builder.binding.PackageTypeChoiceDescriptor.PackageTypeChoiceDescriptor().
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setCompositorAsSequence | ( | ) |
Sets the compositor for the fields of the described class to be a Sequence.
Referenced by org.exolab.castor.builder.binding.BindingDescriptor.BindingDescriptor(), org.exolab.castor.mapping.xml.BindXmlDescriptor.BindXmlDescriptor(), org.exolab.castor.builder.binding.ClassTypeDescriptor.ClassTypeDescriptor(), org.exolab.castor.builder.binding.ComponentBindingTypeDescriptor.ComponentBindingTypeDescriptor(), alma.acs.tools.comphelpergen.generated.ComponentHelperInfoDescriptor.ComponentHelperInfoDescriptor(), alma.tools.entitybuilder.generated.EntitybuilderSettingsDescriptor.EntitybuilderSettingsDescriptor(), org.exolab.castor.builder.binding.NamingTypeDescriptor.NamingTypeDescriptor(), org.exolab.castor.builder.binding.NamingXMLTypeDescriptor.NamingXMLTypeDescriptor(), org.exolab.castor.builder.binding.PackageTypeDescriptor.PackageTypeDescriptor(), and org.exolab.castor.mapping.xml.PropertyTypeDescriptor.PropertyTypeDescriptor().
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.setExtends | ( | XMLClassDescriptor | classDesc | ) |
Sets the XMLClassDescriptor that this descriptor inherits from
classDesc | the XMLClassDescriptor that this descriptor extends |
References org.exolab.castor.xml.util.XMLClassDescriptorImpl.addFieldDescriptor(), org.exolab.castor.mapping.ClassDescriptor.getFields(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.removeFieldDescriptor(), and org.exolab.castor.xml.util.XMLClassDescriptorImpl.sortDescriptors().
Referenced by org.exolab.castor.xml.Introspector.generateClassDescriptor().
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
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.
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.
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
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
String org.exolab.castor.xml.util.XMLClassDescriptorImpl.toXMLName | ( | String | className | ) | [protected] |
References org.exolab.castor.xml.XMLNaming.toXMLName().
Referenced by org.exolab.castor.xml.util.XMLClassDescriptorImpl.setXMLName().
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate | ( | Object | object | ) | throws ValidationException |
Validates the given Object
object | the Object to validate |
void org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate | ( | Object | object, | |
ValidationContext | context | |||
) | throws ValidationException |
Validates the given object
object | the Object to validate | |
context | the ValidationContext |
References org.exolab.castor.xml.util.XMLFieldDescriptors.get(), org.exolab.castor.xml.XMLClassDescriptor.getElementDescriptors(), org.exolab.castor.mapping.FieldDescriptor.getFieldName(), org.exolab.castor.mapping.FieldDescriptor.getHandler(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getJavaClass(), org.exolab.castor.xml.FieldValidator.getMinOccurs(), org.exolab.castor.xml.XMLFieldDescriptor.getValidator(), org.exolab.castor.xml.XMLClassDescriptor.getValidator(), org.exolab.castor.mapping.FieldHandler.getValue(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getXMLName(), org.exolab.castor.xml.XMLFieldDescriptor.getXMLName(), org.exolab.castor.xml.XMLFieldDescriptor.isContainer(), org.exolab.castor.xml.XMLFieldDescriptor.isMultivalued(), org.exolab.castor.xml.util.XMLFieldDescriptors.size(), org.exolab.castor.xml.FieldValidator.validate(), and org.exolab.castor.xml.TypeValidator.validate().