|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Child component (attribute or content) interface definition. This interface provides the basic hooks for generating code from the binding definition.
| 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. |
| Method Detail |
public boolean isOptional()
true if optional, false if requiredpublic boolean hasAttribute()
true if one or more attribute values defined for
containing element, false if not
public void genAttrPresentTest(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if configuration error
public void genAttributeUnmarshal(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if error in configuration
public void genAttributeMarshal(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if error in configurationpublic boolean hasContent()
setLinkages().
true if one or more content values defined
for containing element, false if not
public void genContentPresentTest(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if configuration error
public void genContentUnmarshal(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if error in configuration
public void genContentMarshal(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if error in configuration
public void genNewInstance(ContextMethodBuilder mb)
throws JiBXException
mb - method builder
JiBXException - if error in configurationpublic java.lang.String getType()
public boolean hasId()
true if ID value defined for instances,
false if not
public void genLoadId(ContextMethodBuilder mb)
throws JiBXException
String).
mb - method builder
JiBXException - if configuration errorpublic NameDefinition getWrapperName()
null if no wrapper element
public void setLinkages()
throws JiBXException
JiBXException - if error in configurationpublic void print(int depth)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||