|
|||||||
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
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.
Field Summary | |
protected static java.lang.String |
ABSTRACTMARSHALLER_INTERFACE
|
protected static java.lang.String |
CHECKEXTENDS_METHODNAME
|
protected static java.lang.String |
CHECKEXTENDS_SIGNATURE
|
protected static java.lang.String |
GETINDEX_METHODNAME
|
protected static java.lang.String |
GETINDEX_SIGNATURE
|
protected static java.lang.String |
GETMARSHALLER_METHOD
|
protected static java.lang.String |
GETMARSHALLER_SIGNATURE
|
protected static java.lang.String |
GETUNMARSHALLER_METHOD
|
protected static java.lang.String |
GETUNMARSHALLER_SIGNATURE
|
protected static java.lang.String |
IMARSHALLABLE_INTERFACE
|
protected static java.lang.String |
IUNMARSHALLABLE_INTERFACE
|
private int |
m_indexNumber
Index number for this particular binding definition. |
private java.lang.String |
m_typeName
Qualified type name, in text form. |
protected static java.lang.String |
MARSHALLABLE_METHODNAME
|
protected static java.lang.String |
MARSHALLABLE_SIGNATURE
|
protected static java.lang.String |
MARSHALLER_INTERFACE
|
protected static java.lang.String |
MARSHALLERMARSHAL_METHOD
|
protected static java.lang.String |
MARSHALLERMARSHAL_SIGNATURE
|
protected static java.lang.String |
UNMARSHALLABLE_METHODNAME
|
protected static java.lang.String |
UNMARSHALLABLE_SIGNATURE
|
protected static java.lang.String |
UNMARSHALLER_INTERFACE
|
protected static java.lang.String |
UNMARSHALLERUNMARSHAL_METHOD
|
protected static java.lang.String |
UNMARSHALLERUNMARSHAL_SIGNATURE
|
Fields inherited from class org.jibx.binding.def.LinkableBase |
|
Fields inherited from class org.jibx.binding.def.PassThroughComponent |
m_component |
Constructor Summary | |
MappingBase(IContainer contain,
java.lang.String type,
java.lang.String tname)
Constructor. |
|
MappingBase(IContainer contain,
java.lang.String type,
java.lang.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. |
int |
getIndex()
Get mapped class index number. |
java.lang.String |
getTypeName()
Get type name. |
Methods inherited from class org.jibx.binding.def.LinkableBase |
handleRecursion, 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, getBoundType, getImplComponent, getMarshaller, getName, getNamespaces, getReferenceType, getUnmarshaller, isAbstract, isBase |
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 |
Field Detail |
protected static final java.lang.String IMARSHALLABLE_INTERFACE
protected static final java.lang.String MARSHALLABLE_METHODNAME
protected static final java.lang.String MARSHALLABLE_SIGNATURE
protected static final java.lang.String GETINDEX_METHODNAME
protected static final java.lang.String GETINDEX_SIGNATURE
protected static final java.lang.String CHECKEXTENDS_METHODNAME
protected static final java.lang.String CHECKEXTENDS_SIGNATURE
protected static final java.lang.String IUNMARSHALLABLE_INTERFACE
protected static final java.lang.String UNMARSHALLABLE_METHODNAME
protected static final java.lang.String UNMARSHALLABLE_SIGNATURE
protected static final java.lang.String UNMARSHALLER_INTERFACE
protected static final java.lang.String UNMARSHALLERUNMARSHAL_METHOD
protected static final java.lang.String UNMARSHALLERUNMARSHAL_SIGNATURE
protected static final java.lang.String MARSHALLER_INTERFACE
protected static final java.lang.String ABSTRACTMARSHALLER_INTERFACE
protected static final java.lang.String MARSHALLERMARSHAL_METHOD
protected static final java.lang.String MARSHALLERMARSHAL_SIGNATURE
protected static final java.lang.String GETMARSHALLER_METHOD
protected static final java.lang.String GETMARSHALLER_SIGNATURE
protected static final java.lang.String GETUNMARSHALLER_METHOD
protected static final java.lang.String GETUNMARSHALLER_SIGNATURE
private final int m_indexNumber
private final java.lang.String m_typeName
Constructor Detail |
public MappingBase(IContainer contain, java.lang.String type, java.lang.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 formpublic MappingBase(IContainer contain, java.lang.String type, java.lang.String tname, IComponent wrap)
contain
- containing binding definition structuretype
- class name handled by mappingtname
- qualified type name, in text formwrap
- wrapped binding componentMethod Detail |
public abstract BoundClass getBoundClass()
protected void addIMarshallableMethod() throws JiBXException
JiBXException
- if error in generating codeprotected void addIUnmarshallableMethod() throws JiBXException
JiBXException
- if error in generating codepublic int getIndex()
IMapping
getIndex
in interface IMapping
public java.lang.String getTypeName()
IMapping
getTypeName
in interface IMapping
null
if unnamed)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |