public abstract class BindingFactoryBase extends 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 | Constructor and Description |
|---|---|
protected |
BindingFactoryBase(String name,
int majorver,
int minorver,
String boundnames,
String mappednames,
String umarnames,
String marnames,
String[] uris,
String[] prefixes,
String gmapnames,
String gmapuris,
String[] idclasses,
String abmapdetails,
String abmapnss,
String prenames,
String prefacts,
String prehashes,
String[] prensmaps)
Constructor used in generated binding factories.
|
| 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.
|
String[][] |
getAbstractMappings()
Get the linkage information for global abstract mappings included in the
binding.
|
String[] |
getBaseBindingFactories()
Get the names of the binding factory classes for the separately-compiled
base bindings used by this binding.
|
String[] |
getBaseBindings()
Get the names of the separately-compiled base bindings used by this
binding.
|
String[] |
getBindingClasses()
Get the classes used by the binding.
|
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.
|
String[] |
getElementNames()
Get global-mapped element names.
|
String[] |
getElementNamespaces()
Get global-mapped element namespace URIs.
|
int |
getHash()
Get hash for binding.
|
int |
getMajorVersion()
Get major version number.
|
String[] |
getMappedClasses()
Get mapped class names (or type names, in the case of abstract mappings).
|
Class |
getMarshallerClass(int index)
Get the marshaller class for a mapping.
|
String[] |
getMarshallerClasses()
Get marshaller class names.
|
int |
getMinorVersion()
Get minor version number.
|
String[] |
getNamespaces()
Get the namespace URIs used by the binding.
|
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. |
String[] |
getPrefixes()
Get the namespace prefixes used by the binding.
|
Class |
getUnmarshallerClass(int index)
Get the unmarshaller class for a mapping.
|
String[] |
getUnmarshallerClasses()
Get unmarshaller class names.
|
Map |
getUnmarshalMap()
Get the mapping from element local name to class indexes.
|
Class |
loadClass(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompilerDistribution, getCompilerVersion, getTypeIndexprotected BindingFactoryBase(String name, int majorver, int minorver, String boundnames, String mappednames, String umarnames, String marnames, String[] uris, String[] prefixes, String gmapnames, String gmapuris, String[] idclasses, String abmapdetails, String abmapnss, String prenames, String prefacts, String prehashes, String[] prensmaps)
name - binding namemajorver - binding major version numberminorver - binding minor version numberboundnames - blob of class names with code for this bindingmappednames - blob of class or type names for mappingsumarnames - unmarshaller class names blob (null if
output-only binding)marnames - marshaller class names blob (null if
input-only binding)uris - namespace URIs used by bindingprefixes - namespace prefixes used by binding (null
if input-only binding)gmapnames - globally-mapped element names blobgmapuris - globally-mapped element namespaces blobidclasses - names of classes with IDsabmapdetails - abstract mapping details blobabmapnss - abstract mapping namespace indexes blobprenames - precompiled base binding names blobprefacts - base binding factory classes blobprehashes - base binding hashes blobprensmaps - namespace index mapping tables blobs for precompiled
bindingspublic Class loadClass(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 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 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 String[] getElementNames()
getElementNames in interface IBindingFactorypublic String[] getMarshallerClasses()
getMarshallerClasses in interface IBindingFactorypublic String[] getUnmarshallerClasses()
getUnmarshallerClasses in interface IBindingFactorypublic String[] getElementNamespaces()
getElementNamespaces in interface IBindingFactorypublic 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 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 String[] getNamespaces()
getNamespaces in interface IBindingFactorypublic String[] getBaseBindings()
getBaseBindings in interface IBindingFactorypublic void verifyBaseBindings()
throws JiBXException
verifyBaseBindings in interface IBindingFactoryJiBXException - on verification failurepublic String[] getBaseBindingFactories()
getBaseBindingFactories in interface IBindingFactorypublic 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 String[] getPrefixes()
getPrefixes in interface IBindingFactorypublic 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 Class getMarshallerClass(int index)
getMarshallerClass in interface IBindingFactoryindex - marshaller class indexnull if unable to load classpublic Class getUnmarshallerClass(int index)
getUnmarshallerClass in interface IBindingFactoryindex - unmarshaller class indexnull if unable to load classCopyright © 2005-2013 jibx.org. All Rights Reserved.