|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.mapping.MappingUnmarshaller
public final class MappingUnmarshaller
| Constructor Summary | |
|---|---|
MappingUnmarshaller()
Construct a new MappingUnmarshaller. |
|
| Method Summary | |
|---|---|
MappingLoader |
getMappingLoader(Mapping mapping,
BindingType bindingType)
Returns a mapping resolver for the suitable engine. |
MappingLoader |
getMappingLoader(Mapping mapping,
BindingType bindingType,
Object param)
Returns a mapping resolver for the suitable engine. |
protected void |
loadMappingInternal(Mapping mapping,
DTDResolver resolver,
String url)
Internal recursive loading method. |
void |
loadMappingOnly(Mapping mapping)
|
void |
setAllowRedefinitions(boolean allow)
Enables or disables the ability to allow the redefinition of class mappings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingUnmarshaller()
| Method Detail |
|---|
public void setAllowRedefinitions(boolean allow)
allow - a boolean that when true enables redefinitions.
public MappingLoader getMappingLoader(Mapping mapping,
BindingType bindingType)
throws MappingException
mapping - The mapping to load and resolve.bindingType - The binding type to read from mapping.
MappingException - A mapping error occured preventing
descriptors from being generated from the loaded mapping.
public MappingLoader getMappingLoader(Mapping mapping,
BindingType bindingType,
Object param)
throws MappingException
mapping - The mapping to load and resolve.bindingType - The binding type to read from mapping.param - Arbitrary parameter that is to be passed to resolver.loadMapping().
MappingException - A mapping error occured preventing
descriptors from being generated from the loaded mapping.
public void loadMappingOnly(Mapping mapping)
throws MappingException
MappingException
protected void loadMappingInternal(Mapping mapping,
DTDResolver resolver,
String url)
throws IOException,
MappingException
mapping - The mapping instance.resolver - The entity resolver to use.url - The URL of the mapping file.
IOException - An error occured when reading the mapping file.
MappingException - The mapping file is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||