| Constructor and Description |
|---|
PrecompiledAbstractMapping(String type,
String tname,
String mapname,
int index,
org.jibx.runtime.IBindingFactory factory,
int[] nsxlate,
IContainer parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(MappingDefinition mdef)
Add extension to abstract mapping.
|
void |
addNamespace(NamespaceDefinition ns)
Add namespace.
|
IComponent |
buildRef(IContainer parent,
IContextObj objc,
String type,
PropertyDefinition prop)
Build reference to mapping.
|
void |
generateCode(boolean force)
Generate required code for mapping.
|
ITypeBinding |
getBinding()
Get the actual binding for a mapping.
|
String |
getBoundType()
Get class name handled by mapping.
|
IComponent |
getImplComponent()
Get binding component implementing mapping.
|
String |
getMappingName()
Get the mapping name used in binding tables.
|
ClassFile |
getMarshaller()
Get marshaller class used for mapping.
|
NameDefinition |
getName()
Get mapped element name.
|
ArrayList |
getNamespaces()
Get namespaces defined for mapping.
|
String |
getReferenceType()
Get class name of type to be assumed for references to this mapping.
|
String |
getTypeName()
Get type name.
|
ClassFile |
getUnmarshaller()
Get unmarshaller class used for mapping.
|
NameDefinition |
getWrapperName() |
boolean |
isAbstract()
Check if mapping is abstract.
|
boolean |
isBase()
Check if mapping has extensions.
|
void |
linkMappings()
Links extension mappings to their base mappings.
|
void |
print(int depth) |
void |
setLinkages()
Establish and validate linkages between binding components.
|
public PrecompiledAbstractMapping(String type, String tname, String mapname, int index, org.jibx.runtime.IBindingFactory factory, int[] nsxlate, IContainer parent) throws org.jibx.runtime.JiBXException
type - bound class nametname - qualified type name for abstract mapping (null
if none)mapname - abstract mapping name in bindingindex - abstract mapping index in bindingfactory - binding factory for mapping informationnsxlate - namespace index translation table (null if
none)parent - containing contextorg.jibx.runtime.JiBXException - if class definition not foundpublic void linkMappings()
throws org.jibx.runtime.JiBXException
org.jibx.runtime.JiBXException - if error in linkingpublic String getBoundType()
IMappinggetBoundType in interface IMappingpublic String getReferenceType()
IMappinggetReferenceType in interface IMappingpublic IComponent getImplComponent()
IMappinggetImplComponent in interface IMappingpublic ClassFile getMarshaller()
IMappinggetMarshaller in interface IMappingpublic ClassFile getUnmarshaller()
IMappinggetUnmarshaller in interface IMappingpublic NameDefinition getName()
IMappingpublic void addNamespace(NamespaceDefinition ns) throws org.jibx.runtime.JiBXException
IMappingaddNamespace in interface IMappingns - namespace definition to be addedorg.jibx.runtime.JiBXException - if error in defining namespacepublic boolean isAbstract()
IMappingisAbstract in interface IMappingtrue if an abstract mapping, false
if notpublic boolean isBase()
IMappingpublic void addExtension(MappingDefinition mdef) throws org.jibx.runtime.JiBXException
IMappingaddExtension in interface IMappingmdef - extension mapping definitionorg.jibx.runtime.JiBXException - if configuration errorpublic IComponent buildRef(IContainer parent, IContextObj objc, String type, PropertyDefinition prop) throws org.jibx.runtime.JiBXException
IMappingbuildRef in interface IMappingparent - containing binding definition structureobjc - current object contexttype - mapped value typeprop - property definition (may be null)org.jibx.runtime.JiBXException - if configuration errorpublic ArrayList getNamespaces()
IMappinggetNamespaces in interface IMappingnull if none)public void generateCode(boolean force)
throws org.jibx.runtime.JiBXException
IMappinggenerateCode in interface IMappingforce - add marshaller/unmarshaller classes for abstract non-base
mappings flag (not passed on to children)org.jibx.runtime.JiBXException - if error in transformationpublic NameDefinition getWrapperName()
public ITypeBinding getBinding()
IMappinggetBinding in interface IMappingnull if nonepublic String getMappingName()
IMappinggetMappingName in interface IMappingpublic String getTypeName()
IMappinggetTypeName in interface IMappingnull if
unnamed)public void setLinkages()
throws org.jibx.runtime.JiBXException
ILinkablesetLinkages in interface ILinkableorg.jibx.runtime.JiBXException - if error in configurationpublic void print(int depth)
Copyright © 2005–2016 jibx.org. All rights reserved.