|
|||||||
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.ComponentProperty
Property reference with binding defined by component. This handles loading and storing the property value, calling the wrapped component methods for everything else.
Field Summary | |
private boolean |
m_forceUnmarshal
Fake content to force unmarshal to create an object. |
private PropertyDefinition |
m_property
Property definition. |
private boolean |
m_skipMarshal
Skip marshalling code tests flag. |
Fields inherited from class org.jibx.binding.def.PassThroughComponent |
m_component |
Constructor Summary | |
ComponentProperty(PropertyDefinition prop,
IComponent impl,
boolean skip)
Constructor. |
Method Summary | |
void |
genAttributeMarshal(ContextMethodBuilder mb)
Generate attribute marshalling code. |
void |
genAttributeUnmarshal(ContextMethodBuilder mb)
Generate attribute unmarshalling code. |
void |
genContentMarshal(ContextMethodBuilder mb)
Generate element or text marshalling code. |
void |
genContentUnmarshal(ContextMethodBuilder mb)
Generate element or text unmarshalling code. |
PropertyDefinition |
getProperty()
Get the property information. |
boolean |
hasContent()
Check if component defines one or more elements or text values as children of the containing element. |
boolean |
isOptional()
Check if component is an optional item. |
void |
print(int depth)
|
void |
setForceUnmarshal(boolean force)
Set flag to force unmarshalling to create an object. |
void |
setSkipping(boolean skip)
Set flag for skipping marshalling presence test code generation. |
Methods inherited from class org.jibx.binding.def.PassThroughComponent |
genAttrPresentTest, genContentPresentTest, genLoadId, genNewInstance, getType, getWrapperName, hasAttribute, hasId, 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 boolean m_skipMarshal
private boolean m_forceUnmarshal
Constructor Detail |
public ComponentProperty(PropertyDefinition prop, IComponent impl, boolean skip)
prop
- actual property definitionimpl
- component that defines marshalling and unmarshallingskip
- flag for marshalling code tests to be skippedMethod Detail |
public void setSkipping(boolean skip)
skip
- true
if skipping, false
if notpublic void setForceUnmarshal(boolean force)
force
- true
if skipping, false
if notpublic PropertyDefinition getProperty()
null
value directly to the property when
unmarshalling a missing or xsi:nil element.
public boolean isOptional()
IComponent
isOptional
in interface IComponent
isOptional
in class PassThroughComponent
public boolean hasContent()
IComponent
IComponent.setLinkages()
.
hasContent
in interface IComponent
hasContent
in class PassThroughComponent
public void genAttributeUnmarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttributeUnmarshal
in interface IComponent
genAttributeUnmarshal
in class PassThroughComponent
JiBXException
public void genAttributeMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttributeMarshal
in interface IComponent
genAttributeMarshal
in class PassThroughComponent
JiBXException
public void genContentUnmarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentUnmarshal
in interface IComponent
genContentUnmarshal
in class PassThroughComponent
JiBXException
public void genContentMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentMarshal
in interface IComponent
genContentMarshal
in class PassThroughComponent
JiBXException
public 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 |