public class MappingDefinition extends MappingBase
ABSTRACTMARSHALLER_INTERFACE, CHECKEXTENDS_FULLNAME, CHECKEXTENDS_METHODNAME, CHECKEXTENDS_SIGNATURE, GETINDEX_METHODNAME, GETINDEX_SIGNATURE, GETMARSHALLER_METHOD, GETMARSHALLER_SIGNATURE, GETNAME_METHODNAME, GETNAME_SIGNATURE, GETUNMARSHALLER_METHOD, GETUNMARSHALLER_SIGNATURE, IMARSHALLABLE_INTERFACE, IUNMARSHALLABLE_INTERFACE, MARSHALLABLE_METHODNAME, MARSHALLABLE_SIGNATURE, MARSHALLER_INTERFACE, MARSHALLERMARSHAL_METHOD, MARSHALLERMARSHAL_SIGNATURE, UNMARSHALLABLE_METHODNAME, UNMARSHALLABLE_SIGNATURE, UNMARSHALLER_INTERFACE, UNMARSHALLERUNMARSHAL_METHOD, UNMARSHALLERUNMARSHAL_SIGNATUREm_component| Constructor and Description |
|---|
MappingDefinition(IContainer contain,
DefinitionContext defc,
String type,
NameDefinition name,
String tname,
boolean abs,
String base,
ObjectBinding bind,
boolean nillable)
Constructor.
|
| 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.
|
BoundClass |
getBoundClass()
Get the mapped class information.
|
String |
getBoundType()
Get class name handled by mapping.
|
IComponent |
getImplComponent()
Get binding component implementing mapping.
|
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.
|
ClassFile |
getUnmarshaller()
Get unmarshaller class used for mapping.
|
NameDefinition |
getWrapperName()
Get element wrapper name.
|
boolean |
isAbstract()
Check if mapping is abstract.
|
boolean |
isBase()
Check if mapping has extensions.
|
void |
linkMappings()
Links extension mappings to their base mappings.
|
void |
print(int depth) |
void |
setLinkages()
Establish and validate linkages between binding components.
|
addIMarshallableMethod, addIUnmarshallableMethod, getMappingName, getTypeNamehandleRecursion, isLinkedgenAttributeMarshal, genAttributeUnmarshal, genAttrPresentTest, genContentMarshal, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, hasAttribute, hasContent, hasId, isOptional, setWrappedComponentpublic MappingDefinition(IContainer contain, DefinitionContext defc, String type, NameDefinition name, String tname, boolean abs, String base, ObjectBinding bind, boolean nillable) throws org.jibx.runtime.JiBXException
contain - containing binding definition structuredefc - definition context for this mappingtype - bound class namename - mapped element name information (null if none)tname - qualified type name for abstract mapping (null
if none)abs - abstract mapping flagbase - abstract mapping extended by this onebind - binding definition component (may be null if a
concrete mapping)nillable - flag for nillable elementorg.jibx.runtime.JiBXException - if class definition not foundpublic BoundClass getBoundClass()
getBoundClass in class MappingBasepublic void linkMappings()
throws org.jibx.runtime.JiBXException
org.jibx.runtime.JiBXException - if error in linkingpublic String getBoundType()
IMappingpublic String getReferenceType()
IMappingpublic IComponent getImplComponent()
IMappingpublic ClassFile getMarshaller()
IMappingpublic ClassFile getUnmarshaller()
IMappingpublic NameDefinition getName()
IMappingnull if no
element name defined for mapping)public void addNamespace(NamespaceDefinition ns) throws org.jibx.runtime.JiBXException
IMappingns - namespace definition to be addedorg.jibx.runtime.JiBXException - if error in defining namespacepublic boolean isAbstract()
IMappingtrue if an abstract mapping, false
if notpublic boolean isBase()
IMappingtrue if one or more mappings extend this mapping,
false if notpublic void addExtension(MappingDefinition mdef) throws org.jibx.runtime.JiBXException
IMappingmdef - extension mapping definitionorg.jibx.runtime.JiBXException - if configuration errorpublic IComponent buildRef(IContainer parent, IContextObj objc, String type, PropertyDefinition prop) throws org.jibx.runtime.JiBXException
IMappingparent - containing binding definition structureobjc - current object contexttype - mapped value typeprop - property definition (may be null)org.jibx.runtime.JiBXException - if configuration errorpublic ArrayList getNamespaces()
IMappingnull if none)public void generateCode(boolean force)
throws org.jibx.runtime.JiBXException
IMappingforce - add marshaller/unmarshaller classes for abstract non-base
mappings flag (not passed on to children)org.jibx.runtime.JiBXException - if error in transformationpublic NameDefinition getWrapperName()
IComponentgetWrapperName in interface IComponentgetWrapperName in class PassThroughComponentnull if no wrapper elementpublic void setLinkages()
throws org.jibx.runtime.JiBXException
ILinkablesetLinkages in interface ILinkablesetLinkages in class LinkableBaseorg.jibx.runtime.JiBXException - if error in configurationpublic ITypeBinding getBinding()
IMappingnull if nonepublic void print(int depth)
print in interface IComponentprint in class LinkableBaseCopyright © 2005–2016 jibx.org. All rights reserved.