|
||||||
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.MappingReference
public class MappingReference
Reference to a mapping definition. This is used as a placeholder when building the component structure of a binding definition. It's necessary because the referenced mapping may not have been parsed yet. During the linkage phase that follows parsing this looks up the appropriate mapping 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 definition structure. |
private IContextObj |
m_contextObject
Context object. |
private boolean |
m_isSynthetic
Synthetic reference added to empty collection flag |
private NameDefinition |
m_name
Name from reference (only allowed with abstract mappings) |
private PropertyDefinition |
m_property
Property definition. |
private java.lang.String |
m_type
Fully qualified name of mapped type, or type name for mapping. |
Fields inherited from class org.jibx.binding.def.PassThroughComponent |
---|
m_component |
Constructor Summary | |
---|---|
MappingReference(IContainer contain,
PropertyDefinition prop,
java.lang.String type,
IContextObj objc,
NameDefinition name,
boolean synth)
Constructor from property and type. |
Method Summary | |
---|---|
java.lang.String |
getType()
Get type expected by component. |
void |
print(int depth)
|
void |
setLinkages()
Establish and validate linkages between binding components. |
Methods inherited from class org.jibx.binding.def.PassThroughComponent |
---|
checkContentSequence, genAttributeMarshal, genAttributeUnmarshal, genAttrPresentTest, genContentMarshal, genContentPresentTest, genContentUnmarshal, genLoadId, genNewInstance, 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 PropertyDefinition m_property
private java.lang.String m_type
private final IContextObj m_contextObject
private final NameDefinition m_name
private final boolean m_isSynthetic
Constructor Detail |
---|
public MappingReference(IContainer contain, PropertyDefinition prop, java.lang.String type, IContextObj objc, NameDefinition name, boolean synth)
contain
- containing binding definition structureprop
- property definitiontype
- fully qualified name of mapped type (may also be type name
for abstract mapping)objc
- current object contextname
- reference name definition (only allowed with abstract
mappings)synth
- sythentic reference added to empty collection flagMethod Detail |
---|
public java.lang.String getType()
IComponent
getType
in interface IComponent
getType
in class PassThroughComponent
public 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 |