org.exolab.castor.xml

Class XMLMappingLoader

Implemented Interfaces:
MappingResolver

public class XMLMappingLoader
extends MappingLoader

An XML implementation of mapping helper. Creates XML class descriptors from the mapping file.
Version:
$Revision: 1.5 $ $Date: 2003/04/23 08:44:42 $
Authors:
Keith Visco
Assaf Arkin

Nested Class Summary

(package private) class
XMLMappingLoader.ContainerElementFieldDescriptor
An extended XMLFieldDescriptor that allows us to change the fieldType, needed for container element support
(package private) class
XMLMappingLoader.IdentityConvertor
A special TypeConvertor that simply returns the object given.

Nested classes/interfaces inherited from class org.exolab.castor.mapping.loader.MappingLoader

MappingLoader.TypeInfoReference

Field Summary

Fields inherited from class org.exolab.castor.mapping.loader.MappingLoader

NoDescriptor

Constructor Summary

XMLMappingLoader(ClassLoader loader, PrintWriter logWriter)
Creates a new XMLMappingLoader

Method Summary

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

Methods inherited from class org.exolab.castor.mapping.loader.MappingLoader

addDescriptor, createDescriptor, createFieldDesc, createFieldDescs, createFieldHandler, findAccessor, getClassLoader, getDescriptor, getLogWriter, getTypeInfo, listDescriptors, listJavaClasses, loadClassDescriptor, loadMapping, resolveRelations, resolveType, setAllowRedefinitions

Constructor Details

XMLMappingLoader

public XMLMappingLoader(ClassLoader loader,
                        PrintWriter logWriter)
            throws MappingException
Creates a new XMLMappingLoader

Method Details

createDescriptor

protected ClassDescriptor createDescriptor(ClassMapping clsMap)
            throws MappingException
Overrides:
createDescriptor in interface MappingLoader

createFieldDesc

protected FieldDescriptor createFieldDesc(Class javaClass,
                                          FieldMapping fieldMap)
            throws MappingException
Overrides:
createFieldDesc in interface MappingLoader

getTypeInfo

protected TypeInfo getTypeInfo(Class fieldType,
                               CollectionHandler colHandler,
                               FieldMapping fieldMap)
            throws MappingException
Overrides:
getTypeInfo in interface MappingLoader

resolveRelations

protected void resolveRelations(ClassDescriptor clsDesc)
            throws MappingException
Overrides:
resolveRelations in interface MappingLoader

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