|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBindingFactory
Binding factory interface definition. This interface is implemented by the binding factory class generated by each binding definition. All binding factory instances are guaranteed to be threadsafe and reusable.
Field Summary | |
---|---|
static int |
ABMAP_ATTRMARMETH_INDEX
Abstract mapping details index for attribute marshalling method. |
static int |
ABMAP_ATTRPRESMETH_INDEX
Abstract mapping details index for attribute presence test method. |
static int |
ABMAP_ATTRUMARMETH_INDEX
Abstract mapping details index for attribute unmarshalling method. |
static int |
ABMAP_CLASSNAME_INDEX
Abstract mapping details index for class name. |
static int |
ABMAP_COMPLETEMETH_INDEX
Abstract mapping details index for unmarshalling complete method. |
static int |
ABMAP_CONTMARMETH_INDEX
Abstract mapping details index for content marshalling method. |
static int |
ABMAP_CONTPRESMETH_INDEX
Abstract mapping details index for content presence test method. |
static int |
ABMAP_CONTUMARMETH_INDEX
Abstract mapping details index for content unmarshalling method. |
static int |
ABMAP_COUNT
Number of abstract mapping details. |
static int |
ABMAP_CREATEMETH_INDEX
Abstract mapping details index for new instance creation method. |
static int |
ABMAP_MAPPINGNAME_INDEX
Abstract mapping details index for mapping (type or class) name. |
static int |
ABMAP_PREPAREMETH_INDEX
Abstract mapping details index for marshalling prepare method. |
static int |
COMPATIBLE_VERSION_MASK
Mask for portions of version number that effect compatibility. |
static java.lang.String |
CURRENT_VERSION_NAME
Current distribution file name. |
static int |
CURRENT_VERSION_NUMBER
Current binary version number. |
Method Summary | |
---|---|
IMarshallingContext |
createMarshallingContext()
Create marshalling context instance. |
IUnmarshallingContext |
createUnmarshallingContext()
Create unmarshalling context instance. |
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 name of this binding. |
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 |
getCompilerDistribution()
Get distribution name for binding compiler used. |
int |
getCompilerVersion()
Get version number for binding compiler used. |
java.lang.String[] |
getElementNames()
Get names of elements corresponding to mapped classes. |
java.lang.String[] |
getElementNamespaces()
Get namespaces of elements corresponding to mapped classes. |
int |
getHash()
Get hash for binding. |
int |
getMajorVersion()
Get the major version number for this binding. |
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 the minor version number for this binding. |
java.lang.String[] |
getNamespaces()
Get namespaces defined in mapping. |
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 initial prefixes for namespaces defined in mapping. |
int |
getTypeIndex(java.lang.String type)
Get mapped class index from type name for abstract non-base mappings included in 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. |
Field Detail |
---|
static final int CURRENT_VERSION_NUMBER
static final java.lang.String CURRENT_VERSION_NAME
static final int COMPATIBLE_VERSION_MASK
static final int ABMAP_MAPPINGNAME_INDEX
static final int ABMAP_CLASSNAME_INDEX
static final int ABMAP_CREATEMETH_INDEX
static final int ABMAP_COMPLETEMETH_INDEX
static final int ABMAP_PREPAREMETH_INDEX
static final int ABMAP_ATTRPRESMETH_INDEX
static final int ABMAP_ATTRUMARMETH_INDEX
static final int ABMAP_ATTRMARMETH_INDEX
static final int ABMAP_CONTPRESMETH_INDEX
static final int ABMAP_CONTUMARMETH_INDEX
static final int ABMAP_CONTMARMETH_INDEX
static final int ABMAP_COUNT
Method Detail |
---|
IMarshallingContext createMarshallingContext() throws JiBXException
JiBXException
- if error creating context
java.lang.UnsupportedOperationException
- if marshalling not supported
by bindingIUnmarshallingContext createUnmarshallingContext() throws JiBXException
JiBXException
- if error creating context
java.lang.UnsupportedOperationException
- if unmarshalling not supported
by bindingint getCompilerVersion()
java.lang.String getCompilerDistribution()
java.lang.String getBindingName()
int getMajorVersion()
int getMinorVersion()
int getHash()
getMarshallerClass(int)
and getUnmarshallerClass(int)
methods returning Class
objects.
java.lang.String[] getNamespaces()
null
if not
an output binding)java.lang.String[] getPrefixes()
null
if not an output binding)java.lang.String[] getMappedClasses()
StringIntHashMap getClassIndexMap()
getMappedClasses()
, getMarshallerClasses()
, and getUnmarshallerClasses()
, and can also be used as input for getMarshallerClass(int)
and getUnmarshallerClass(int)
.
java.lang.String[] getElementNamespaces()
getMappedClasses()
call. Entries in the array are null
if
there is no element for a class or the element is in the default
namespace.
java.lang.String[] getElementNames()
getMappedClasses()
call. Entries in the array are null
if there is no element
for a class.
java.lang.String[] getMarshallerClasses()
getMappedClasses()
call. Entries in the array
are null
if there is no marshaller class for the mapping.
java.lang.String[] getUnmarshallerClasses()
getMappedClasses()
call. Entries in the array
are null
if there is no unmarshaller class for the mapping.
int getTypeIndex(java.lang.String type)
type
- fully-qualified class or type name
-1
if type is not an
abstract non-base mappingjava.lang.String[] getBindingClasses() throws JiBXException
verifyBaseBindings()
has not already been invoked it will be invoked by
this call.
JiBXException
- on base binding verification errorjava.lang.String[][] getAbstractMappings()
null
if none)null
if none)null
if none)null
if none)null
if none)null
if none)null
if none)null
if none)null
if none)
int[] getAbstractMappingNamespaces(int index)
index
- abstract mapping index, corresponding to the abstract
mapping information returned by getAbstractMappings()
.
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.
java.lang.Class getUnmarshallerClass(int index)
index
- unmarshaller class index
null
if unable to load classjava.lang.Class getMarshallerClass(int index)
index
- marshaller class index
null
if unable to load classjava.lang.String[] getBaseBindings()
void verifyBaseBindings() throws JiBXException
JiBXException
- on verification failurejava.lang.String[] getBaseBindingFactories()
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.
java.lang.Class loadClass(java.lang.String name)
name
- fully qualified class name
null
if class not found
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |