org.exolab.castor.mapping.loader
Class AbstractMappingLoader2
java.lang.Object
org.exolab.castor.mapping.loader.AbstractMappingLoader2
- MappingLoader
public abstract class AbstractMappingLoader2
extends java.lang.Object
AbstractMappingLoader2
public AbstractMappingLoader2(ClassLoader loader)
addDescriptor
protected final void addDescriptor(ClassDescriptor descriptor)
throws MappingException
Adds a class descriptor. Will throw a mapping exception if a descriptor for this class
already exists.
descriptor
- The descriptor to add.
isAllowRedefinition
public final boolean isAllowRedefinition()
Is the ability to allow redefinitions enabled or disabled?
- A boolean that when true enables redefinitions.
loadMapping
public final void loadMapping(MappingRoot mapping,
Object param)
throws MappingException
Loads the mapping from the specified mapping object if not loaded previously.
mapping
- The mapping information.param
- Arbitrary parameter that can be used by subclasses.
loadMappingInternal
protected abstract void loadMappingInternal(MappingRoot mapping,
Object param)
throws MappingException
Loads the mapping from the specified mapping object. Calls
AbstractMappingLoader2
to
create each descriptor and
addDescriptor(ClassDescriptor)
to store it. Also loads all the included
mapping files.
mapping
- The mapping information.param
- Arbitrary parameter that can be used by subclasses.
setAllowRedefinitions
public final void setAllowRedefinitions(boolean allow)
Enables or disables the ability to allow the redefinition of class mappings.
allow
- A boolean that when true enables redefinitions.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com