public abstract class BindingFactoryBase extends java.lang.Object implements IBindingFactory
ABMAP_ATTRMARMETH_INDEX, ABMAP_ATTRPRESMETH_INDEX, ABMAP_ATTRUMARMETH_INDEX, ABMAP_CLASSNAME_INDEX, ABMAP_COMPLETEMETH_INDEX, ABMAP_CONTMARMETH_INDEX, ABMAP_CONTPRESMETH_INDEX, ABMAP_CONTUMARMETH_INDEX, ABMAP_COUNT, ABMAP_CREATEMETH_INDEX, ABMAP_MAPPINGNAME_INDEX, ABMAP_PREPAREMETH_INDEX, COMPATIBLE_VERSION_MASK, CURRENT_VERSION_NAME, CURRENT_VERSION_NUMBER| Modifier and Type | Method and Description |
|---|---|
IMarshallingContext |
createMarshallingContext()
Create a new marshalling context.
|
IUnmarshallingContext |
createUnmarshallingContext()
Create a new unmarshalling context.
|
int[] |
getAbstractMappingNamespaces(int index)
Get the indexes of the namespaces used by an abstract mapping.
|
java.lang.String[][] |
getAbstractMappings()
Get the linkage information for global abstract mappings included in the
binding.
|
java.lang.String[] |
getBaseBindingFactories()
Get the names of the binding factory classes for the separately-compiled
base bindings used by this binding.
|
java.lang.String[] |
getBaseBindings()
Get the names of the separately-compiled base bindings used by this
binding.
|
java.lang.String[] |
getBindingClasses()
Get the classes used by the binding.
|
java.lang.String |
getBindingName()
Get the binding name.
|
StringIntHashMap |
getClassIndexMap()
Get map from fully-qualified class name to the index number of the class
used for accessing the arrays of class names.
|
java.lang.String[] |
getElementNames()
Get global-mapped element names.
|
java.lang.String[] |
getElementNamespaces()
Get global-mapped element namespace URIs.
|
int |
getHash()
Get hash for binding.
|
int |
getMajorVersion()
Get major version number.
|
java.lang.String[] |
getMappedClasses()
Get mapped class names (or type names, in the case of abstract mappings).
|
java.lang.Class |
getMarshallerClass(int index)
Get the marshaller class for a mapping.
|
java.lang.String[] |
getMarshallerClasses()
Get marshaller class names.
|
int |
getMinorVersion()
Get minor version number.
|
java.lang.String[] |
getNamespaces()
Get the namespace URIs used by the binding.
|
java.util.Map |
getNamespaceTranslationTableMap()
Get a map from full-qualified binding factory names to an array of
int values used to convert namespace indexes in that binding
to this binding. |
java.lang.String[] |
getPrefixes()
Get the namespace prefixes used by the binding.
|
java.lang.Class |
getUnmarshallerClass(int index)
Get the unmarshaller class for a mapping.
|
java.lang.String[] |
getUnmarshallerClasses()
Get unmarshaller class names.
|
java.util.Map |
getUnmarshalMap()
Get the mapping from element local name to class indexes.
|
java.lang.Class |
loadClass(java.lang.String name)
Load a class.
|
void |
verifyBaseBindings()
Verify that separately-compiled base bindings used by this binding can be
loaded and are compatible with the base bindings used when this binding
was compiled.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompilerDistribution, getCompilerVersion, getTypeIndexpublic java.lang.Class loadClass(java.lang.String name)
loadClass in interface IBindingFactoryname - fully qualified class namenull if class not foundpublic IMarshallingContext createMarshallingContext() throws JiBXException
createMarshallingContext in interface IBindingFactoryJiBXExceptionpublic IUnmarshallingContext createUnmarshallingContext() throws JiBXException
createUnmarshallingContext in interface IBindingFactoryJiBXExceptionpublic java.lang.String getBindingName()
getBindingName in interface IBindingFactorypublic int getHash()
getMarshallerClass(int) and getUnmarshallerClass(int)
methods returning Class objects.getHash in interface IBindingFactorypublic int getMajorVersion()
getMajorVersion in interface IBindingFactorypublic int getMinorVersion()
getMinorVersion in interface IBindingFactorypublic java.lang.String[] getBindingClasses()
throws JiBXException
verifyBaseBindings() has not already been invoked it will be invoked by
this call.getBindingClasses in interface IBindingFactoryJiBXException - on base binding verification errorpublic java.lang.String[] getElementNames()
getElementNames in interface IBindingFactorypublic java.lang.String[] getMarshallerClasses()
getMarshallerClasses in interface IBindingFactorypublic java.lang.String[] getUnmarshallerClasses()
getUnmarshallerClasses in interface IBindingFactorypublic java.lang.String[] getElementNamespaces()
getElementNamespaces in interface IBindingFactorypublic java.lang.String[] getMappedClasses()
getMappedClasses in interface IBindingFactorypublic StringIntHashMap getClassIndexMap()
getMappedClasses(), getMarshallerClasses(), and getUnmarshallerClasses(), and can also be used as input for getMarshallerClass(int) and getUnmarshallerClass(int).getClassIndexMap in interface IBindingFactorypublic java.lang.String[][] getAbstractMappings()
IBindingFactory.getAbstractMappings() for details.getAbstractMappings in interface IBindingFactorypublic int[] getAbstractMappingNamespaces(int index)
getAbstractMappingNamespaces in interface IBindingFactoryindex - abstract mapping index, corresponding to the abstract
mapping information returned by getAbstractMappings().public java.lang.String[] getNamespaces()
getNamespaces in interface IBindingFactorypublic java.lang.String[] getBaseBindings()
getBaseBindings in interface IBindingFactorypublic void verifyBaseBindings()
throws JiBXException
verifyBaseBindings in interface IBindingFactoryJiBXException - on verification failurepublic java.lang.String[] getBaseBindingFactories()
getBaseBindingFactories in interface IBindingFactorypublic java.util.Map getNamespaceTranslationTableMap()
int values used to convert namespace indexes in that binding
to this binding. If the binding uses the same namespaces as this binding
(or a subset of the same namespaces, with the same index values) there is
no entry in the map.getNamespaceTranslationTableMap in interface IBindingFactorypublic java.lang.String[] getPrefixes()
getPrefixes in interface IBindingFactorypublic java.util.Map getUnmarshalMap()
Integer giving the index of the class mapped to the name; if
the local name is used with multiple namespaces, the value for that name
is an array with multiple int class indexes, for every class
mapped to the name.getUnmarshalMap in interface IBindingFactorypublic java.lang.Class getMarshallerClass(int index)
getMarshallerClass in interface IBindingFactoryindex - marshaller class indexnull if unable to load classpublic java.lang.Class getUnmarshallerClass(int index)
getUnmarshallerClass in interface IBindingFactoryindex - unmarshaller class indexnull if unable to load class