| java.lang.Object org.castor.mapping.MappingUnmarshaller
MappingUnmarshaller | final public class MappingUnmarshaller (Code) | | author: Ralf Joachim version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $ |
MappingUnmarshaller | public MappingUnmarshaller()(Code) | | Construct a new MappingUnmarshaller.
|
getMappingLoader | public MappingLoader getMappingLoader(Mapping mapping, BindingType bindingType) throws MappingException(Code) | | Returns a mapping resolver for the suitable engine. The engine's
specific mapping loader is created and used to create engine
specific descriptors, returning a suitable mapping resolver.
The mapping resolver is cached in memory and returned in
subsequent method calls.
Parameters: mapping - The mapping to load and resolve. Parameters: bindingType - The binding type to read from mapping. A mapping resolver. throws: MappingException - A mapping error occured preventingdescriptors from being generated from the loaded mapping. |
getMappingLoader | public MappingLoader getMappingLoader(Mapping mapping, BindingType bindingType, Object param) throws MappingException(Code) | | Returns a mapping resolver for the suitable engine. The engine's
specific mapping loader is created and used to create engine
specific descriptors, returning a suitable mapping resolver.
The mapping resolver is cached in memory and returned in
subsequent method calls.
Parameters: mapping - The mapping to load and resolve. Parameters: bindingType - The binding type to read from mapping. Parameters: param - Arbitrary parameter that is to be passed to resolver.loadMapping(). A mapping resolver throws: MappingException - A mapping error occured preventingdescriptors from being generated from the loaded mapping. |
loadMappingInternal | protected void loadMappingInternal(Mapping mapping, DTDResolver resolver, String url) throws IOException, MappingException(Code) | | Internal recursive loading method. This method will load the
mapping document into a mapping object and load all the included
mapping along the way into a single collection.
Parameters: mapping - The mapping instance. Parameters: resolver - The entity resolver to use. Parameters: url - The URL of the mapping file. throws: IOException - An error occured when reading the mapping file. throws: MappingException - The mapping file is invalid. |
setAllowRedefinitions | public void setAllowRedefinitions(boolean allow)(Code) | | Enables or disables the ability to allow the redefinition
of class mappings.
Parameters: allow - a boolean that when true enables redefinitions. |
|
|