|
||||||
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.StructureReference
public class StructureReference
Reference to a structure definition. This is used as a placeholder when building the component structure of a binding definition. It's necessary because the referenced structure may not have been parsed yet. During the linkage phase that follows parsing this looks up the appropriate structure definition and sets up the corresponding component structure. Thereafter it operates as a simple pass-through wrapper for the top child component.
Field Summary | |
---|---|
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. |
Fields inherited from class org.jibx.binding.def.PassThroughComponent |
---|
m_component |
Constructor Summary | |
---|---|
StructureReference(IContainer contain,
java.lang.String label,
PropertyDefinition prop,
boolean hasname,
IContextObj cobj)
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)
|
void |
setLinkages()
Establish and validate linkages between binding components. |
Methods inherited from class org.jibx.binding.def.PassThroughComponent |
---|
genAttributeUnmarshal, genAttrPresentTest, 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 |
Field Detail |
---|
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
Constructor Detail |
---|
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 objectMethod 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 setLinkages() throws JiBXException
IComponent
setLinkages
in interface IComponent
setLinkages
in class PassThroughComponent
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 |