|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapping
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.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 |
---|
checkContentSequence, genAttributeMarshal, genAttributeUnmarshal, genAttrPresentTest, genContentMarshal, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, hasAttribute, hasContent, hasId, isOptional, print, setLinkages |
Method Detail |
---|
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)int getIndex()
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 notvoid addExtension(MappingDefinition mdef) throws JiBXException
mdef
- extension mapping definition
JiBXException
- 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 errorvoid 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 |