|
||||||
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 |
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. |
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. |
java.lang.String[] |
getMappedClasses()
Get mapped class names (or type names, in the case of abstract mappings). |
java.lang.String[] |
getNamespaces()
Get namespaces defined in mapping. |
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. |
Field Detail |
---|
static final int CURRENT_VERSION_NUMBER
static final java.lang.String CURRENT_VERSION_NAME
static final int COMPATIBLE_VERSION_MASK
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[] getNamespaces()
null
if not
an output binding)java.lang.String[] getPrefixes()
null
if not an output binding)java.lang.String[] getMappedClasses()
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.
int getTypeIndex(java.lang.String type)
type
- fully-qualified class or type name
-1
if type is not an
abstract non-base mapping
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |