|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.runtime.impl.BindingFactoryBase
public abstract class BindingFactoryBase
Base class for generated binding factories. This provides common implementation code, so that the code does not need to be duplicated in every generated binding factory.
Field Summary |
---|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jibx.runtime.IBindingFactory |
---|
getCompilerDistribution, getCompilerVersion, getTypeIndex |
Method Detail |
---|
public java.lang.Class loadClass(java.lang.String name)
loadClass
in interface IBindingFactory
name
- fully qualified class name
null
if class not foundpublic IMarshallingContext createMarshallingContext() throws JiBXException
createMarshallingContext
in interface IBindingFactory
JiBXException
public IUnmarshallingContext createUnmarshallingContext() throws JiBXException
createUnmarshallingContext
in interface IBindingFactory
JiBXException
public java.lang.String getBindingName()
getBindingName
in interface IBindingFactory
public int getHash()
getMarshallerClass(int)
and getUnmarshallerClass(int)
methods returning Class
objects.
getHash
in interface IBindingFactory
public int getMajorVersion()
getMajorVersion
in interface IBindingFactory
public int getMinorVersion()
getMinorVersion
in interface IBindingFactory
public java.lang.String[] getBindingClasses() throws JiBXException
verifyBaseBindings()
has not already been invoked it will be invoked by
this call.
getBindingClasses
in interface IBindingFactory
JiBXException
- on base binding verification errorpublic java.lang.String[] getElementNames()
getElementNames
in interface IBindingFactory
public java.lang.String[] getMarshallerClasses()
getMarshallerClasses
in interface IBindingFactory
public java.lang.String[] getUnmarshallerClasses()
getUnmarshallerClasses
in interface IBindingFactory
public java.lang.String[] getElementNamespaces()
getElementNamespaces
in interface IBindingFactory
public java.lang.String[] getMappedClasses()
getMappedClasses
in interface IBindingFactory
public StringIntHashMap getClassIndexMap()
getMappedClasses()
, getMarshallerClasses()
, and getUnmarshallerClasses()
, and can also be used as input for getMarshallerClass(int)
and getUnmarshallerClass(int)
.
getClassIndexMap
in interface IBindingFactory
public java.lang.String[][] getAbstractMappings()
IBindingFactory.getAbstractMappings()
for details.
getAbstractMappings
in interface IBindingFactory
public int[] getAbstractMappingNamespaces(int index)
getAbstractMappingNamespaces
in interface IBindingFactory
index
- abstract mapping index, corresponding to the abstract
mapping information returned by getAbstractMappings()
.
public java.lang.String[] getNamespaces()
getNamespaces
in interface IBindingFactory
public java.lang.String[] getBaseBindings()
getBaseBindings
in interface IBindingFactory
public void verifyBaseBindings() throws JiBXException
verifyBaseBindings
in interface IBindingFactory
JiBXException
- on verification failurepublic java.lang.String[] getBaseBindingFactories()
getBaseBindingFactories
in interface IBindingFactory
public 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 IBindingFactory
public java.lang.String[] getPrefixes()
getPrefixes
in interface IBindingFactory
public 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 IBindingFactory
public java.lang.Class getMarshallerClass(int index)
getMarshallerClass
in interface IBindingFactory
index
- marshaller class index
null
if unable to load classpublic java.lang.Class getUnmarshallerClass(int index)
getUnmarshallerClass
in interface IBindingFactory
index
- unmarshaller class index
null
if unable to load class
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |