|
||||||
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.OptionalStructureWrapper
public class OptionalStructureWrapper
Component decorator for optional structure with associated property. This just handles necessary glue code generation for the marshalling operations, where the presence of the structure needs to be tested before actually handling tag generation.
Field Summary | |
---|---|
private boolean |
m_loadMarshal
Load object for marshalling code generation flag. |
private PropertyDefinition |
m_property
Property definition. |
Fields inherited from class org.jibx.binding.def.PassThroughComponent |
---|
m_component |
Constructor Summary | |
---|---|
OptionalStructureWrapper(IComponent wrap,
PropertyDefinition prop,
boolean load)
Constructor. |
Method Summary | |
---|---|
void |
genAttributeMarshal(ContextMethodBuilder mb)
Generate attribute marshalling code. |
void |
genContentMarshal(ContextMethodBuilder mb)
Generate element or text marshalling code. |
void |
print(int depth)
|
Methods inherited from class org.jibx.binding.def.PassThroughComponent |
---|
checkContentSequence, genAttributeUnmarshal, genAttrPresentTest, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, hasAttribute, hasContent, hasId, isOptional, setLinkages, setWrappedComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final PropertyDefinition m_property
private final boolean m_loadMarshal
Constructor Detail |
---|
public OptionalStructureWrapper(IComponent wrap, PropertyDefinition prop, boolean load)
wrap
- wrapped binding componentload
- flag for need to load object for marshalling codeMethod Detail |
---|
public void genAttributeMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttributeMarshal
in interface IComponent
genAttributeMarshal
in class PassThroughComponent
mb
- method builder
JiBXException
- if error in configurationpublic void genContentMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentMarshal
in interface IComponent
genContentMarshal
in class PassThroughComponent
mb
- method builder
JiBXException
- if error in configurationpublic void print(int depth)
print
in interface IComponent
print
in class PassThroughComponent
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |