IComponent
, ILinkable
public class StructureReference extends PassThroughComponent
Modifier and Type | Field | Description |
---|---|---|
private IContainer |
m_container |
Containing binding component.
|
private IContextObj |
m_contextObject |
Containing binding definition structure.
|
private java.lang.String |
m_label |
Identifier for referenced structure definition.
|
private boolean |
m_needLoad |
Object load needed for marshalling flag (used with object binding).
|
private PropertyDefinition |
m_property |
Property definition (may be
null ). |
private boolean |
m_skipMarshal |
Flag for marshalling code generation to be skipped by component.
|
m_component
Constructor | Description |
---|---|
StructureReference(IContainer contain,
java.lang.String label,
PropertyDefinition prop,
boolean hasname,
IContextObj cobj) |
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) |
|
void |
setLinkages() |
Establish and validate linkages between binding components.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
genAttributeUnmarshal, genAttrPresentTest, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, getType, getWrapperName, hasAttribute, hasContent, hasId, isOptional, setWrappedComponent
private final IContainer m_container
private final IContextObj m_contextObject
private final PropertyDefinition m_property
null
).private final java.lang.String m_label
private boolean m_skipMarshal
private boolean m_needLoad
public StructureReference(IContainer contain, java.lang.String label, PropertyDefinition prop, boolean hasname, IContextObj cobj)
contain
- containing binding componentlabel
- reference structure identifierprop
- property definition (may be null
)hasname
- element name used with reference flagcobj
- context objectpublic 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 setLinkages() throws JiBXException
ILinkable
setLinkages
in interface ILinkable
setLinkages
in class PassThroughComponent
JiBXException
- if error in configurationpublic void print(int depth)
print
in interface IComponent
print
in class PassThroughComponent