protected abstract static class ClassHolder.DataNode extends Object
| Constructor and Description |
|---|
ClassHolder.DataNode(Item item,
ClassHolder.ParentNode parent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendDocText(StringBuffer buff)
Append documentation text to description.
|
protected void |
appendSelectConstText(StringBuffer buff)
Append selection constant text to description, if selection constant defined.
|
abstract String |
describe(int depth)
Generate the node description.
|
String |
getBindingType()
Get the value type name in binding form.
|
String |
getDocumentation()
Get schema documentation for this node.
|
String |
getFieldName()
Get field name used for value.
|
String |
getFlagMethodName()
Get flag-method name used for value.
|
String |
getGetMethodName()
Get get-method name used for value.
|
Item |
getItem()
Get associated item.
|
ClassHolder.ParentNode |
getParent()
Get parent node.
|
String |
getPropName()
Get property name for value.
|
QName |
getQName()
Get the name associated with a node.
|
QName |
getReferenceQName()
Get the reference name associated with a node.
|
AnnotatedBase |
getSchemaComponent()
Get the associated schema component.
|
String |
getSelectConstName()
Get selection constant name.
|
String |
getSelectPropName()
Get selection property name (used for 'if' method generation).
|
String |
getSetMethodName()
Get set-method name used for value.
|
String |
getTestMethodName()
Get test-method name used for value.
|
String |
getType()
Get the value type name.
|
boolean |
isAny()
Check if an xs:any value.
|
boolean |
isCollection()
Check if a collection value.
|
boolean |
isIgnored()
Check if value is ignored.
|
abstract boolean |
isInterior()
Check if this is an interior node.
|
boolean |
isList()
Check if an xs:list value.
|
boolean |
isNamed()
Check if a name (element or attribute) is associated with this node.
|
boolean |
isOptional()
Check if value is optional.
|
boolean |
isReference()
Check if a reference (element or attribute) is associated with this node.
|
void |
setDocumentation(String text)
Set schema documentation for this node.
|
void |
setFieldName(String name)
Set field name used for value.
|
void |
setFlagMethodName(String name)
Set flag-method name used for value.
|
void |
setGetMethodName(String name)
Set get-method name used for value.
|
void |
setPropName(String name)
Set property name for value.
|
void |
setSelectConstName(String name)
Set selection constant name.
|
void |
setSelectPropName(String name)
Set selection property name (used for 'if' method generation).
|
void |
setSetMethodName(String name)
Set set-method name used for value.
|
void |
setTestMethodName(String name)
Set test-method name used for value.
|
public ClassHolder.DataNode(Item item, ClassHolder.ParentNode parent)
item - associated itemparent - parent nodepublic Item getItem()
public AnnotatedBase getSchemaComponent()
public ClassHolder.ParentNode getParent()
public abstract boolean isInterior()
true if node with children, false if notpublic boolean isIgnored()
public boolean isOptional()
public boolean isCollection()
true if collectionpublic boolean isList()
true if listpublic boolean isAny()
true if anypublic boolean isNamed()
true if namedpublic QName getQName()
null if nonepublic boolean isReference()
true if namedpublic QName getReferenceQName()
null if nonepublic String getDocumentation()
public void setDocumentation(String text)
text - public String getType()
null if no type associated with value, only on group)public String getBindingType()
null if no type associated with value, only on group)public String getSelectPropName()
null if the containing group does not use a selector.null if no selector for group)public void setSelectPropName(String name)
name - (null if no selector for group)public String getSelectConstName()
null if the
containing group does not use a selector.null if no selector for group)public void setSelectConstName(String name)
name - (null if no selector for group)public String getPropName()
null if none)public void setPropName(String name)
name - name (null if none)public String getFieldName()
null if no field)public void setFieldName(String name)
name - (null if no field)public String getGetMethodName()
null if no get-method)public void setGetMethodName(String name)
name - (null if no get-method)public String getSetMethodName()
null if no set-method)public void setSetMethodName(String name)
name - (null if no set-method)public String getTestMethodName()
null if no set-method)public void setTestMethodName(String name)
name - (null if no set-method)public String getFlagMethodName()
null if no set-method)public void setFlagMethodName(String name)
name - (null if no flag-method)public abstract String describe(int depth)
depth - current nesting depthprotected void appendDocText(StringBuffer buff)
buff - protected void appendSelectConstText(StringBuffer buff)
buff - Copyright © 2005-2014 jibx.org. All Rights Reserved.