|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.def.PassThroughComponent
org.jibx.binding.def.LinkableBase
org.jibx.binding.def.MappingBase
public abstract class MappingBase
Base class for mapping definitions. This is used for both normal and custom mappings. It handles adding the appropriate marshalling and/or unmarshalling interfaces and methods to the classes.
| Fields inherited from class org.jibx.binding.def.PassThroughComponent |
|---|
m_component |
| Constructor Summary | |
|---|---|
MappingBase(IContainer contain,
String type,
String tname)
Constructor. |
|
MappingBase(IContainer contain,
String type,
String tname,
IComponent wrap)
Constructor with wrapped component supplied. |
|
| Method Summary | |
|---|---|
protected void |
addIMarshallableMethod()
Generate marshallable interface methods for this mapping. |
protected void |
addIUnmarshallableMethod()
Generate unmarshallable interface method for this mapping. |
abstract BoundClass |
getBoundClass()
Get the mapped class information. |
String |
getMappingName()
Get the mapping name used in binding tables. |
String |
getTypeName()
Get type name. |
| Methods inherited from class org.jibx.binding.def.LinkableBase |
|---|
handleRecursion, isLinked, print, setLinkages |
| Methods inherited from class org.jibx.binding.def.PassThroughComponent |
|---|
genAttributeMarshal, genAttributeUnmarshal, genAttrPresentTest, genContentMarshal, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, getWrapperName, hasAttribute, hasContent, hasId, isOptional, setWrappedComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jibx.binding.def.IMapping |
|---|
addExtension, addNamespace, buildRef, generateCode, getBinding, getBoundType, getImplComponent, getMarshaller, getName, getNamespaces, getReferenceType, getUnmarshaller, isAbstract, isBase |
| Methods inherited from interface org.jibx.binding.def.ILinkable |
|---|
setLinkages |
| Field Detail |
|---|
protected static final String IMARSHALLABLE_INTERFACE
protected static final String MARSHALLABLE_METHODNAME
protected static final String MARSHALLABLE_SIGNATURE
protected static final String GETINDEX_METHODNAME
protected static final String GETINDEX_SIGNATURE
protected static final String GETNAME_METHODNAME
protected static final String GETNAME_SIGNATURE
protected static final String CHECKEXTENDS_METHODNAME
protected static final String CHECKEXTENDS_FULLNAME
protected static final String CHECKEXTENDS_SIGNATURE
protected static final String IUNMARSHALLABLE_INTERFACE
protected static final String UNMARSHALLABLE_METHODNAME
protected static final String UNMARSHALLABLE_SIGNATURE
protected static final String UNMARSHALLER_INTERFACE
protected static final String UNMARSHALLERUNMARSHAL_METHOD
protected static final String UNMARSHALLERUNMARSHAL_SIGNATURE
protected static final String MARSHALLER_INTERFACE
protected static final String ABSTRACTMARSHALLER_INTERFACE
protected static final String MARSHALLERMARSHAL_METHOD
protected static final String MARSHALLERMARSHAL_SIGNATURE
protected static final String GETMARSHALLER_METHOD
protected static final String GETMARSHALLER_SIGNATURE
protected static final String GETUNMARSHALLER_METHOD
protected static final String GETUNMARSHALLER_SIGNATURE
| Constructor Detail |
|---|
public MappingBase(IContainer contain,
String type,
String tname)
PassThroughComponent.setWrappedComponent(org.jibx.binding.def.IComponent) method.
contain - containing binding definition structuretype - class name handled by mappingtname - qualified type name, in text form
public MappingBase(IContainer contain,
String type,
String tname,
IComponent wrap)
contain - containing binding definition structuretype - class name handled by mappingtname - qualified type name, in text formwrap - wrapped binding component| Method Detail |
|---|
public abstract BoundClass getBoundClass()
protected void addIMarshallableMethod()
throws JiBXException
JiBXException - if error in generating code
protected void addIUnmarshallableMethod()
throws JiBXException
JiBXException - if error in generating codepublic String getMappingName()
IMapping
getMappingName in interface IMappingpublic String getTypeName()
IMapping
getTypeName in interface IMappingnull if
unnamed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||