Package org.jibx.binding.def
Class BaseMappingWrapper
java.lang.Object
org.jibx.binding.def.PassThroughComponent
org.jibx.binding.def.BaseMappingWrapper
- All Implemented Interfaces:
IComponent,ILinkable
Component decorator for abstract base mapping from extension mapping. This
just handles necessary glue code generation.
- Version:
- 1.0
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields inherited from class org.jibx.binding.def.PassThroughComponent
m_component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerate attribute marshalling code.voidGenerate attribute unmarshalling code.voidGenerate element or text marshalling code.voidGenerate element or text unmarshalling code.voidGenerate code to create new instance of object.voidprint(int depth) Methods inherited from class org.jibx.binding.def.PassThroughComponent
genAttrPresentTest, genContentPresentTest, genLoadId, getType, getWrapperName, hasAttribute, hasContent, hasId, isOptional, setLinkages, setWrappedComponent
-
Constructor Details
-
BaseMappingWrapper
Constructor.- Parameters:
wrap- wrapped binding component
-
-
Method Details
-
genAttributeUnmarshal
Description copied from interface:IComponentGenerate attribute unmarshalling code. This is called within the code generation for the unmarshaller of the class associated with the containing element. It needs to generate the necessary code for handling the unmarshalling operation, leaving the unmarshalled object reference on the stack.- Specified by:
genAttributeUnmarshalin interfaceIComponent- Overrides:
genAttributeUnmarshalin classPassThroughComponent- Parameters:
mb- method builder- Throws:
JiBXException- if error in configuration
-
genAttributeMarshal
Description copied from interface:IComponentGenerate attribute marshalling code. This is called within the code generation for the marshaller of the class associated with the containing element. It needs to generate the necessary code for handling the marshalling operation, consuming the marshalled object reference from the stack.- Specified by:
genAttributeMarshalin interfaceIComponent- Overrides:
genAttributeMarshalin classPassThroughComponent- Parameters:
mb- method builder- Throws:
JiBXException- if error in configuration
-
genContentUnmarshal
Description copied from interface:IComponentGenerate element or text unmarshalling code. This is called within the code generation for the unmarshaller of the class associated with the containing element. It needs to generate the necessary code for handling the unmarshalling operation, leaving the unmarshalled object reference on the stack.- Specified by:
genContentUnmarshalin interfaceIComponent- Overrides:
genContentUnmarshalin classPassThroughComponent- Parameters:
mb- method builder- Throws:
JiBXException- if error in configuration
-
genContentMarshal
Description copied from interface:IComponentGenerate element or text marshalling code. This is called within the code generation for the marshaller of the class associated with the containing element. It needs to generate the necessary code for handling the marshalling operation, consuming the marshalled object reference from the stack.- Specified by:
genContentMarshalin interfaceIComponent- Overrides:
genContentMarshalin classPassThroughComponent- Parameters:
mb- method builder- Throws:
JiBXException- if error in configuration
-
genNewInstance
Description copied from interface:IComponentGenerate code to create new instance of object. This is called within the code generation for the unmarshaller of the class associated with the containing element. It needs to generate the necessary code for creating an instance of the object to be unmarshalled, leaving the object reference on the stack.- Specified by:
genNewInstancein interfaceIComponent- Overrides:
genNewInstancein classPassThroughComponent- Parameters:
mb- method builder- Throws:
JiBXException- if error in configuration
-
print
public void print(int depth) - Specified by:
printin interfaceIComponent- Overrides:
printin classPassThroughComponent
-