public interface IComponent extends ILinkable
| Modifier and Type | Method and Description |
|---|---|
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.
|
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) |
setLinkagesboolean isOptional()
true if optional, false if requiredboolean hasAttribute()
true if one or more attribute values defined for
containing element, false if notvoid genAttrPresentTest(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if configuration errorvoid genAttributeUnmarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if error in configurationvoid genAttributeMarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if error in configurationboolean hasContent()
ILinkable.setLinkages().true if one or more content values defined
for containing element, false if notvoid genContentPresentTest(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if configuration errorvoid genContentUnmarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if error in configurationvoid genContentMarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if error in configurationvoid genNewInstance(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - if error in configurationString getType()
boolean hasId()
true if ID value defined for instances,
false if notvoid genLoadId(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
String).mb - method builderorg.jibx.runtime.JiBXException - if configuration errorNameDefinition getWrapperName()
null if no wrapper elementvoid print(int depth)
Copyright © 2005–2016 jibx.org. All rights reserved.