public interface IMapping extends ILinkable
| 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.
|
boolean |
isAbstract()
Check if mapping is abstract.
|
boolean |
isBase()
Check if mapping has extensions.
|
setLinkagesString getBoundType()
String getReferenceType()
IComponent getImplComponent()
ClassFile getMarshaller() throws org.jibx.runtime.JiBXException
org.jibx.runtime.JiBXException - if error in configurationClassFile getUnmarshaller() throws org.jibx.runtime.JiBXException
org.jibx.runtime.JiBXException - if error in configurationNameDefinition getName()
null if no
element name defined for mapping)String getTypeName()
null if
unnamed)String getMappingName()
void addNamespace(NamespaceDefinition ns) throws org.jibx.runtime.JiBXException
ns - namespace definition to be addedorg.jibx.runtime.JiBXException - if error in defining namespaceboolean isAbstract()
true if an abstract mapping, false
if notboolean isBase()
true if one or more mappings extend this mapping,
false if notvoid addExtension(MappingDefinition mdef) throws org.jibx.runtime.JiBXException
mdef - extension mapping definitionorg.jibx.runtime.JiBXException - if configuration errorIComponent buildRef(IContainer parent, IContextObj objc, String type, PropertyDefinition prop) throws org.jibx.runtime.JiBXException
parent - containing binding definition structureobjc - current object contexttype - mapped value typeprop - property definition (may be null)org.jibx.runtime.JiBXException - if configuration errorArrayList getNamespaces()
null if none)void generateCode(boolean force)
throws org.jibx.runtime.JiBXException
force - add marshaller/unmarshaller classes for abstract non-base
mappings flag (not passed on to children)org.jibx.runtime.JiBXException - if error in transformationITypeBinding getBinding()
null if noneCopyright © 2005–2016 jibx.org. All rights reserved.