|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for mapping definitions. This defines the additional access methods used with mappings (beyond those used with ordinary components).
Method Summary | |
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. |
java.lang.String |
getBoundType()
Get class name handled by mapping. |
IComponent |
getImplComponent()
Get binding component implementing mapping. |
int |
getIndex()
Get mapped class index number. |
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. |
Methods inherited from interface org.jibx.binding.def.IComponent |
genAttributeMarshal, genAttributeUnmarshal, genAttrPresentTest, genContentMarshal, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, getWrapperName, hasAttribute, hasContent, hasId, isOptional, print, setLinkages |
Method Detail |
public java.lang.String getBoundType()
public java.lang.String getReferenceType()
public IComponent getImplComponent()
public ClassFile getMarshaller() throws JiBXException
JiBXException
- if error in configurationpublic ClassFile getUnmarshaller() throws JiBXException
JiBXException
- if error in configurationpublic NameDefinition getName()
null
if no
element name defined for mapping)public java.lang.String getTypeName()
null
if unnamed)public int getIndex()
public void addNamespace(NamespaceDefinition ns) throws JiBXException
ns
- namespace definition to be added
JiBXException
- if error in defining namespacepublic boolean isAbstract()
true
if an abstract mapping, false
if
notpublic boolean isBase()
true
if one or more mappings extend this mapping,
false
if notpublic void addExtension(MappingDefinition mdef) throws JiBXException
mdef
- extension mapping definition
JiBXException
- if configuration errorpublic IComponent 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 errorpublic java.util.ArrayList getNamespaces()
null
if none)public 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 transformation
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |