|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMapping
Interface for mapping definitions.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.jibx.binding.def.ILinkable |
|---|
setLinkages |
| Method Detail |
|---|
String getBoundType()
String getReferenceType()
IComponent getImplComponent()
ClassFile getMarshaller()
throws JiBXException
JiBXException - if error in configuration
ClassFile getUnmarshaller()
throws JiBXException
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 JiBXException
ns - namespace definition to be added
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 not
void addExtension(MappingDefinition mdef)
throws JiBXException
mdef - extension mapping definition
JiBXException - if configuration error
IComponent buildRef(IContainer parent,
IContextObj objc,
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 errorArrayList 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||