public class DirectGeneric extends Object implements IComponent
| Constructor and Description |
|---|
DirectGeneric(IContainer parent,
String type)
Constructor without implicit property.
|
DirectGeneric(IContainer parent,
String type,
PropertyDefinition prop)
Constructor with defined property.
|
| 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 |
genMarshal(ContextMethodBuilder mb)
Generate marshalling code for this mapping.
|
void |
genNewInstance(ContextMethodBuilder mb)
Generate code to create new instance of object.
|
void |
genTestPresent(ContextMethodBuilder mb)
Generate presence test code for this mapping.
|
void |
genUnmarshal(ContextMethodBuilder mb)
Generate unmarshalling code for this mapping.
|
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.
|
public DirectGeneric(IContainer parent, String type)
parent - containing binding definition structuretype - fully qualified class name of object type handled by this
binding (null if unspecified)public DirectGeneric(IContainer parent, String type, PropertyDefinition prop)
parent - containing binding definition structuretype - fully qualified class name of object type handled by this
binding (null if unspecified)prop - associated property informationpublic void genTestPresent(ContextMethodBuilder mb)
mb - method builderpublic void genUnmarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - Errorpublic void genMarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
mb - method builderorg.jibx.runtime.JiBXException - Errorpublic boolean isOptional()
IComponentisOptional in interface IComponenttrue if optional, false if requiredpublic boolean hasAttribute()
IComponenthasAttribute in interface IComponenttrue if one or more attribute values defined for
containing element, false if notpublic void genAttrPresentTest(ContextMethodBuilder mb)
IComponentgenAttrPresentTest in interface IComponentmb - method builderpublic void genAttributeUnmarshal(ContextMethodBuilder mb)
IComponentgenAttributeUnmarshal in interface IComponentmb - method builderpublic void genAttributeMarshal(ContextMethodBuilder mb)
IComponentgenAttributeMarshal in interface IComponentmb - method builderpublic boolean hasContent()
IComponentILinkable.setLinkages().hasContent in interface IComponenttrue if one or more content values defined
for containing element, false if notpublic void genContentPresentTest(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
IComponentgenContentPresentTest in interface IComponentmb - method builderorg.jibx.runtime.JiBXException - if configuration errorpublic void genContentUnmarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
IComponentgenContentUnmarshal in interface IComponentmb - method builderorg.jibx.runtime.JiBXException - if error in configurationpublic void genContentMarshal(ContextMethodBuilder mb) throws org.jibx.runtime.JiBXException
IComponentgenContentMarshal in interface IComponentmb - method builderorg.jibx.runtime.JiBXException - if error in configurationpublic void genNewInstance(ContextMethodBuilder mb)
IComponentgenNewInstance in interface IComponentmb - method builderpublic String getType()
IComponentgetType in interface IComponentpublic boolean hasId()
IComponenthasId in interface IComponenttrue if ID value defined for instances,
false if notpublic void genLoadId(ContextMethodBuilder mb)
IComponentString).genLoadId in interface IComponentmb - method builderpublic NameDefinition getWrapperName()
IComponentgetWrapperName in interface IComponentnull if no wrapper elementpublic void setLinkages()
ILinkablesetLinkages in interface ILinkablepublic void print(int depth)
print in interface IComponentCopyright © 2005–2016 jibx.org. All rights reserved.