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,
java.lang.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.
|
java.lang.String |
getBoundType()
Get class name handled by mapping.
|
IComponent |
getImplComponent()
Get binding component implementing mapping.
|
java.lang.String |
getMappingName()
Get the mapping name used in binding tables.
|
ClassFile |
getMarshaller()
Get marshaller class used for mapping.
|
NameDefinition |
getName()
Get mapped element name.
|
java.util.ArrayList |
getNamespaces()
Get namespaces defined for mapping.
|
java.lang.String |
getReferenceType()
Get class name of type to be assumed for references to this mapping.
|
java.lang.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.
|
setLinkages
java.lang.String getBoundType()
java.lang.String getReferenceType()
IComponent getImplComponent()
ClassFile getMarshaller() throws JiBXException
JiBXException
- if error in configurationClassFile getUnmarshaller() throws JiBXException
JiBXException
- if error in configurationNameDefinition getName()
null
if no
element name defined for mapping)java.lang.String getTypeName()
null
if
unnamed)java.lang.String getMappingName()
void addNamespace(NamespaceDefinition ns) throws JiBXException
ns
- namespace definition to be addedJiBXException
- 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 JiBXException
mdef
- extension mapping definitionJiBXException
- if configuration errorIComponent buildRef(IContainer parent, IContextObj objc, java.lang.String type, PropertyDefinition prop) throws JiBXException
parent
- containing binding definition structureobjc
- current object contexttype
- mapped value typeprop
- property definition (may be null
)JiBXException
- if configuration errorjava.util.ArrayList getNamespaces()
null
if none)void generateCode(boolean force) throws JiBXException
force
- add marshaller/unmarshaller classes for abstract non-base
mappings flag (not passed on to children)JiBXException
- if error in transformationITypeBinding getBinding()
null
if none