Classes | Public Member Functions | Protected Member Functions

org.exolab.castor.xml.XMLMappingLoader Class Reference

Inheritance diagram for org.exolab.castor.xml.XMLMappingLoader:
org.exolab.castor.mapping.loader.MappingLoader org.exolab.castor.mapping.MappingResolver

List of all members.

Classes

class  ContainerElementFieldDescriptor
class  IdentityConvertor

Public Member Functions

 XMLMappingLoader (ClassLoader loader, PrintWriter logWriter) throws MappingException

Protected Member Functions

void resolveRelations (ClassDescriptor clsDesc) throws MappingException
ClassDescriptor createDescriptor (ClassMapping clsMap) throws MappingException
FieldDescriptor createFieldDesc (Class javaClass, FieldMapping fieldMap) throws MappingException
TypeInfo getTypeInfo (Class fieldType, CollectionHandler colHandler, FieldMapping fieldMap) throws MappingException

Detailed Description

An XML implementation of mapping helper. Creates XML class descriptors from the mapping file.

Author:
Keith Visco
Assaf Arkin
Version:
Revision:
1.12
Date:
2004/03/08 10:39:21

Constructor & Destructor Documentation

org.exolab.castor.xml.XMLMappingLoader.XMLMappingLoader ( ClassLoader  loader,
PrintWriter  logWriter 
) throws MappingException

Member Function Documentation

ClassDescriptor org.exolab.castor.xml.XMLMappingLoader.createDescriptor ( ClassMapping  clsMap  )  throws MappingException [protected]

Creates a new descriptor. The class mapping information is used to create a new stock ClassDescriptor. Implementations may extend this class to create a more suitable descriptor.

Parameters:
clsMap The class mapping information
Exceptions:
MappingException An exception indicating why mapping for the class cannot be created

Reimplemented from org.exolab.castor.mapping.loader.MappingLoader.

References org.exolab.castor.xml.util.XMLClassDescriptorImpl.addFieldDescriptor(), org.exolab.castor.xml.Introspector.generateClassDescriptor(), org.exolab.castor.xml.XMLClassDescriptor.getAttributeDescriptors(), org.exolab.castor.xml.XMLClassDescriptor.getContentDescriptor(), org.exolab.castor.xml.XMLClassDescriptor.getElementDescriptors(), org.exolab.castor.mapping.FieldDescriptor.getFieldName(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getFields(), org.exolab.castor.mapping.ClassDescriptor.getIdentity(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.getJavaClass(), org.exolab.castor.mapping.ClassDescriptor.getJavaClass(), org.exolab.castor.core.exceptions.CastorException.getMessage(), org.exolab.castor.mapping.xml.MapTo.getNsPrefix(), org.exolab.castor.mapping.xml.MapTo.getNsUri(), org.exolab.castor.mapping.xml.MapTo.getXml(), org.exolab.castor.mapping.loader.MappingLoader.loadClassDescriptor(), org.exolab.castor.xml.util.ClassDescriptorResolverImpl.resolve(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.setIdentity(), org.exolab.castor.xml.util.ClassDescriptorResolverImpl.setIntrospection(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.setNameSpacePrefix(), org.exolab.castor.xml.util.XMLClassDescriptorImpl.setNameSpaceURI(), and org.exolab.castor.xml.XMLNaming.toXMLName().

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

FieldDescriptor org.exolab.castor.xml.XMLMappingLoader.createFieldDesc ( Class  javaClass,
FieldMapping  fieldMap 
) throws MappingException [protected]

Create container field descriptor. The contained mapping is used to create a single field descriptor which includes several field descriptors for all contained fields.

Parameters:
javaClass The class to which the field belongs
fieldMap The field mapping
Exceptions:
MappingException An exception indicating why mapping for the class cannot be created Creates a single field descriptor. The field mapping is used to create a new stock FieldDescriptor. Implementations may extend this class to create a more suitable descriptor.
Parameters:
javaClass The class to which the field belongs
fieldMap The field mapping information
Returns:
The field descriptor
Exceptions:
MappingException The field or its accessor methods are not found, not accessible, not of the specified type, etc

Reimplemented from org.exolab.castor.mapping.loader.MappingLoader.

References org.exolab.castor.xml.XMLMappingLoader.createDescriptor(), org.exolab.castor.mapping.xml.types.BindXmlAutoNamingType.DERIVEBYCLASS, org.exolab.castor.xml.NodeType.Element, org.exolab.castor.mapping.xml.BindXml.getAutoNaming(), org.exolab.castor.mapping.xml.BindXml.getClassMapping(), org.exolab.castor.mapping.FieldDescriptor.getFieldName(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.getFieldType(), org.exolab.castor.mapping.FieldDescriptor.getFieldType(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.getHandler(), org.exolab.castor.mapping.xml.BindXml.getLocation(), org.exolab.castor.mapping.xml.BindXml.getMatches(), org.exolab.castor.mapping.xml.PropertyType.getName(), org.exolab.castor.mapping.xml.BindXml.getName(), org.exolab.castor.mapping.xml.BindXml.getNode(), org.exolab.castor.xml.NodeType.getNodeType(), org.exolab.castor.mapping.xml.BindXml.getProperty(), org.exolab.castor.mapping.xml.BindXml.getQNamePrefix(), org.exolab.castor.mapping.xml.BindXml.getReference(), org.exolab.castor.mapping.xml.BindXml.getTransient(), org.exolab.castor.mapping.xml.BindXml.getType(), org.exolab.castor.mapping.xml.PropertyType.getValue(), org.exolab.castor.mapping.xml.types.CollectionType.HASHTABLE, org.exolab.castor.xml.util.XMLFieldDescriptorImpl.isMapped(), org.exolab.castor.mapping.FieldDescriptor.isTransient(), org.exolab.castor.mapping.xml.types.CollectionType.MAP, org.exolab.castor.xml.NodeType.Namespace, org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setClassDescriptor(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setConstructorArgumentIndex(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setContainer(), org.exolab.castor.mapping.loader.FieldHandlerImpl.setConvertFrom(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setHandler(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setImmutable(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setLocationPath(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setMapped(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setMatches(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setNameSpaceURI(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setProperty(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setQNamePrefix(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setReference(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setSchemaType(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setTransient(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setUseParentsNamespace(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setValidator(), org.exolab.castor.xml.util.XMLFieldDescriptorImpl.setXMLName(), org.exolab.castor.xml.XMLNaming.toXMLName(), and org.exolab.castor.mapping.xml.types.CollectionType.valueOf().

TypeInfo org.exolab.castor.xml.XMLMappingLoader.getTypeInfo ( Class  fieldType,
CollectionHandler  colHandler,
FieldMapping  fieldMap 
) throws MappingException [protected]
void org.exolab.castor.xml.XMLMappingLoader.resolveRelations ( ClassDescriptor  clsDesc  )  throws MappingException [protected]

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