|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.def.ValueChild
public class ValueChild
Attribute or simple content value definition from binding. This organizes
information for anything that can be converted to and from a simple
String. Content values include both elements with only character
data content and text, as character data content or CDATA sections.
| Field Summary | |
|---|---|
protected static String |
MARSHAL_ATTRIBUTE
|
protected static String |
MARSHAL_CLOSESTART_EMPTY
|
protected static String |
MARSHAL_CLOSESTART_EMPTY_SIGNATURE
|
protected static String |
MARSHAL_ELEMENT
|
protected static String |
MARSHAL_SIGNATURE
|
protected static String |
MARSHAL_STARTTAG_ATTRIBUTES
|
protected static String |
MARSHAL_STARTTAG_SIGNATURE
|
protected static String |
UNMARSHAL_ATTRIBUTE_BOOLEAN_NAME
|
protected static String |
UNMARSHAL_ATTRIBUTE_BOOLEAN_SIGNATURE
|
protected static String |
UNMARSHAL_REQ_ATTRIBUTE
|
protected static String |
UNMARSHAL_REQ_SIGNATURE
|
| Constructor Summary | |
|---|---|
ValueChild(IContainer contain,
IContextObj objc,
NameDefinition name,
PropertyDefinition prop,
StringConversion conv,
int style,
int ident,
String constant,
boolean nillable)
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 |
genIfPresentTest(UnmarshalBuilder mb)
Generate test if present code. |
void |
genLoadId(ContextMethodBuilder mub)
Generate code to load ID value of instance to stack. |
void |
genNewInstance(ContextMethodBuilder mb)
Generate code to create new instance of object. |
String |
getPropertyName()
Get property name. |
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 |
isImplicit()
Check if implicit. |
boolean |
isOptional()
Check if component is an optional item. |
void |
print(int depth)
|
void |
setLinkages()
Establish and validate linkages between binding components. |
void |
switchProperty()
Switch property from "this" to "implicit". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String UNMARSHAL_REQ_ATTRIBUTE
protected static final String UNMARSHAL_REQ_SIGNATURE
protected static final String MARSHAL_ATTRIBUTE
protected static final String MARSHAL_ELEMENT
protected static final String MARSHAL_SIGNATURE
protected static final String MARSHAL_STARTTAG_ATTRIBUTES
protected static final String MARSHAL_STARTTAG_SIGNATURE
protected static final String MARSHAL_CLOSESTART_EMPTY
protected static final String MARSHAL_CLOSESTART_EMPTY_SIGNATURE
protected static final String UNMARSHAL_ATTRIBUTE_BOOLEAN_NAME
protected static final String UNMARSHAL_ATTRIBUTE_BOOLEAN_SIGNATURE
| Constructor Detail |
|---|
public ValueChild(IContainer contain,
IContextObj objc,
NameDefinition name,
PropertyDefinition prop,
StringConversion conv,
int style,
int ident,
String constant,
boolean nillable)
contain - containing binding definition structureobjc - containing object contextname - element or attribute name information (may be
null)prop - property reference informationconv - string conversion handlerstyle - value style codeident - identifier type codeconstant - value for constantnillable - nillable element flag| Method Detail |
|---|
public void genIfPresentTest(UnmarshalBuilder mb)
throws JiBXException
mb - unmarshal method builder
JiBXException - if configuration errorpublic String getPropertyName()
public boolean isImplicit()
true if implicit, false if notpublic void switchProperty()
public boolean isOptional()
IComponent
isOptional in interface IComponenttrue if optional, false if requiredpublic boolean hasAttribute()
IComponent
hasAttribute in interface IComponenttrue if one or more attribute values defined for
containing element, false if not
public void genAttrPresentTest(ContextMethodBuilder mb)
throws JiBXException
IComponent
genAttrPresentTest in interface IComponentmb - method builder
JiBXException - if configuration error
public void genAttributeUnmarshal(ContextMethodBuilder mb)
throws JiBXException
IComponent
genAttributeUnmarshal in interface IComponentmb - method builder
JiBXException - if error in configuration
public void genAttributeMarshal(ContextMethodBuilder mb)
throws JiBXException
IComponent
genAttributeMarshal in interface IComponentmb - method builder
JiBXException - if error in configurationpublic boolean hasContent()
IComponentILinkable.setLinkages().
hasContent in interface IComponenttrue if one or more content values defined
for containing element, false if not
public void genContentPresentTest(ContextMethodBuilder mb)
throws JiBXException
IComponent
genContentPresentTest in interface IComponentmb - method builder
JiBXException - if configuration error
public void genContentUnmarshal(ContextMethodBuilder mb)
throws JiBXException
IComponent
genContentUnmarshal in interface IComponentmb - method builder
JiBXException - if error in configuration
public void genContentMarshal(ContextMethodBuilder mb)
throws JiBXException
IComponent
genContentMarshal in interface IComponentmb - method builder
JiBXException - if error in configurationpublic void genNewInstance(ContextMethodBuilder mb)
IComponent
genNewInstance in interface IComponentmb - method builderpublic String getType()
IComponent
getType in interface IComponentpublic boolean hasId()
IComponent
hasId in interface IComponenttrue if ID value defined for instances,
false if not
public void genLoadId(ContextMethodBuilder mub)
throws JiBXException
IComponentString).
genLoadId in interface IComponentmub - method builder
JiBXException - if configuration errorpublic NameDefinition getWrapperName()
IComponent
getWrapperName in interface IComponentnull if no wrapper element
public void setLinkages()
throws JiBXException
ILinkable
setLinkages in interface ILinkableJiBXException - 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 | |||||||||