|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.binding.def.PassThroughComponent
public class PassThroughComponent
Default component decorator. This just passes through all method calls to the wrapped component.
Field Summary | |
---|---|
protected IComponent |
m_component
Property value binding component. |
Constructor Summary | |
---|---|
protected |
PassThroughComponent()
No argument constructor. |
protected |
PassThroughComponent(IComponent comp)
Constructor. |
Method Summary | |
---|---|
void |
genAttributeMarshal(ContextMethodBuilder mb)
Generate attribute marshalling code. |
void |
genAttributeUnmarshal(ContextMethodBuilder mb)
Generate attribute unmarshalling code. |
void |
genAttrPresentTest(ContextMethodBuilder mb)
Generate code to test for attribute present. |
void |
genContentMarshal(ContextMethodBuilder mb)
Generate element or text marshalling code. |
void |
genContentPresentTest(ContextMethodBuilder mb)
Generate code to test for content present. |
void |
genContentUnmarshal(ContextMethodBuilder mb)
Generate element or text unmarshalling code. |
void |
genLoadId(ContextMethodBuilder mb)
Generate code to load ID value of instance to stack. |
void |
genNewInstance(ContextMethodBuilder mb)
Generate code to create new instance of object. |
java.lang.String |
getType()
Get type expected by component. |
NameDefinition |
getWrapperName()
Get element wrapper name. |
boolean |
hasAttribute()
Check if component defines one or more attribute values of the containing element. |
boolean |
hasContent()
Check if component defines one or more elements or text values as children of the containing element. |
boolean |
hasId()
Check if component defines an ID value for instances of context object. |
boolean |
isOptional()
Check if component is an optional item. |
void |
print(int depth)
|
void |
setLinkages()
Establish and validate linkages between binding components. |
protected void |
setWrappedComponent(IComponent comp)
Set the wrapped component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IComponent m_component
Constructor Detail |
---|
protected PassThroughComponent()
setWrappedComponent(org.jibx.binding.def.IComponent)
method.
protected PassThroughComponent(IComponent comp)
comp
- wrapped componentMethod Detail |
---|
protected void setWrappedComponent(IComponent comp)
comp
- wrapped componentpublic boolean isOptional()
IComponent
isOptional
in interface IComponent
true
if optional, false
if requiredpublic boolean hasAttribute()
IComponent
hasAttribute
in interface IComponent
true
if one or more attribute values defined for
containing element, false
if notpublic void genAttrPresentTest(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttrPresentTest
in interface IComponent
mb
- method builder
JiBXException
- if configuration errorpublic void genAttributeUnmarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttributeUnmarshal
in interface IComponent
mb
- method builder
JiBXException
- if error in configurationpublic void genAttributeMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genAttributeMarshal
in interface IComponent
mb
- method builder
JiBXException
- if error in configurationpublic boolean hasContent()
IComponent
IComponent.setLinkages()
.
hasContent
in interface IComponent
true
if one or more content values defined
for containing element, false
if notpublic void genContentPresentTest(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentPresentTest
in interface IComponent
mb
- method builder
JiBXException
- if configuration errorpublic void genContentUnmarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentUnmarshal
in interface IComponent
mb
- method builder
JiBXException
- if error in configurationpublic void genContentMarshal(ContextMethodBuilder mb) throws JiBXException
IComponent
genContentMarshal
in interface IComponent
mb
- method builder
JiBXException
- if error in configurationpublic void genNewInstance(ContextMethodBuilder mb) throws JiBXException
IComponent
genNewInstance
in interface IComponent
mb
- method builder
JiBXException
- if error in configurationpublic java.lang.String getType()
IComponent
getType
in interface IComponent
public boolean hasId()
IComponent
hasId
in interface IComponent
true
if ID value defined for instances,
false
if notpublic void genLoadId(ContextMethodBuilder mb) throws JiBXException
IComponent
String
).
genLoadId
in interface IComponent
mb
- method builder
JiBXException
- if configuration errorpublic NameDefinition getWrapperName()
IComponent
getWrapperName
in interface IComponent
null
if no wrapper elementpublic void setLinkages() throws JiBXException
IComponent
setLinkages
in interface IComponent
JiBXException
- if error in configurationpublic void print(int depth)
print
in interface IComponent
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |