IComponent
, ILinkable
public class OptionalStructureWrapper extends PassThroughComponent
Modifier and Type | Field | Description |
---|---|---|
private boolean |
m_loadMarshal |
Load object for marshalling code generation flag.
|
private PropertyDefinition |
m_property |
Property definition.
|
m_component
Constructor | Description |
---|---|
OptionalStructureWrapper(IComponent wrap,
PropertyDefinition prop,
boolean load) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
genAttributeMarshal(ContextMethodBuilder mb) |
Generate attribute marshalling code.
|
void |
genContentMarshal(ContextMethodBuilder mb) |
Generate element or text marshalling code.
|
void |
print(int depth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
genAttributeUnmarshal, genAttrPresentTest, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, getWrapperName, hasAttribute, hasContent, hasId, isOptional, setLinkages, setWrappedComponent
private final PropertyDefinition m_property
private final boolean m_loadMarshal
public OptionalStructureWrapper(IComponent wrap, PropertyDefinition prop, boolean load)
wrap
- wrapped binding componentload
- flag for need to load object for marshalling codepublic void genAttributeMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttributeMarshal
in interface IComponent
genAttributeMarshal
in class PassThroughComponent
mb
- method builderJiBXException
- if error in configurationpublic void genContentMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentMarshal
in interface IComponent
genContentMarshal
in class PassThroughComponent
mb
- method builderJiBXException
- if error in configurationpublic void print(int depth)
print
in interface IComponent
print
in class PassThroughComponent