protected abstract static class ClassHolder.DataNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
DESCRIPTION_DOCUMENTATION_LIMIT
Maximum number of characters of documentation text to include in description.
|
private boolean |
m_collection
Flag for a collection item.
|
private java.lang.String |
m_documentation
Documentation extracted from schema for this data node.
|
private java.lang.String |
m_fieldName
Field name for value (
null if no field). |
private java.lang.String |
m_flagMethodName
Flag-method name for value (
null if no flag-method). |
private java.lang.String |
m_getMethodName
Get-method name for value (
null if no get-method). |
private boolean |
m_ignored
Flag for an ignored item.
|
private Item |
m_item
Associated item.
|
private boolean |
m_named
Element or attribute name flag.
|
private boolean |
m_optional
Flag for an optional item.
|
private ClassHolder.ParentNode |
m_parent
Parent node (
null if none defined, only allowed for root node of tree). |
private java.lang.String |
m_propName
Property name for value (
null if no property). |
private java.lang.String |
m_selectConstName
Selection constant name (only used with group selectors,
null if no selector for group). |
private java.lang.String |
m_selectPropName
Selection property name for 'if' method construction (only used with group selectors,
null if
no selector for group). |
private java.lang.String |
m_setMethodName
Set-method name for value (
null if no set-method). |
private java.lang.String |
m_testMethodName
Test-method name for value (
null if no test-method). |
private java.lang.String |
m_type
Value type name.
|
Constructor and Description |
---|
DataNode(Item item,
ClassHolder.ParentNode parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendDocText(java.lang.StringBuffer buff)
Append documentation text to description.
|
protected void |
appendSelectConstText(java.lang.StringBuffer buff)
Append selection constant text to description, if selection constant defined.
|
abstract java.lang.String |
describe(int depth)
Generate the node description.
|
java.lang.String |
getBindingType()
Get the value type name in binding form.
|
java.lang.String |
getDocumentation()
Get schema documentation for this node.
|
java.lang.String |
getFieldName()
Get field name used for value.
|
java.lang.String |
getFlagMethodName()
Get flag-method name used for value.
|
java.lang.String |
getGetMethodName()
Get get-method name used for value.
|
Item |
getItem()
Get associated item.
|
ClassHolder.ParentNode |
getParent()
Get parent node.
|
java.lang.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.
|
java.lang.String |
getSelectConstName()
Get selection constant name.
|
java.lang.String |
getSelectPropName()
Get selection property name (used for 'if' method generation).
|
java.lang.String |
getSetMethodName()
Get set-method name used for value.
|
java.lang.String |
getTestMethodName()
Get test-method name used for value.
|
java.lang.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(java.lang.String text)
Set schema documentation for this node.
|
void |
setFieldName(java.lang.String name)
Set field name used for value.
|
void |
setFlagMethodName(java.lang.String name)
Set flag-method name used for value.
|
void |
setGetMethodName(java.lang.String name)
Set get-method name used for value.
|
void |
setPropName(java.lang.String name)
Set property name for value.
|
void |
setSelectConstName(java.lang.String name)
Set selection constant name.
|
void |
setSelectPropName(java.lang.String name)
Set selection property name (used for 'if' method generation).
|
void |
setSetMethodName(java.lang.String name)
Set set-method name used for value.
|
void |
setTestMethodName(java.lang.String name)
Set test-method name used for value.
|
private static final int DESCRIPTION_DOCUMENTATION_LIMIT
private final Item m_item
private final ClassHolder.ParentNode m_parent
null
if none defined, only allowed for root node of tree).private final boolean m_named
private final boolean m_optional
private final boolean m_ignored
private final boolean m_collection
private java.lang.String m_documentation
private java.lang.String m_type
private java.lang.String m_selectPropName
null
if
no selector for group).private java.lang.String m_selectConstName
null
if no selector for group).private java.lang.String m_propName
null
if no property). Even interior nodes may have property names, in
the case of a choice between different alternatives.private java.lang.String m_fieldName
null
if no field).private java.lang.String m_getMethodName
null
if no get-method).private java.lang.String m_setMethodName
null
if no set-method).private java.lang.String m_testMethodName
null
if no test-method).private java.lang.String m_flagMethodName
null
if no flag-method).public 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 java.lang.String getDocumentation()
public void setDocumentation(java.lang.String text)
text
- public java.lang.String getType()
null
if no type associated with value, only on group)public java.lang.String getBindingType()
null
if no type associated with value, only on group)public java.lang.String getSelectPropName()
null
if the containing group does not use a selector.null
if no selector for group)public void setSelectPropName(java.lang.String name)
name
- (null
if no selector for group)public java.lang.String getSelectConstName()
null
if the
containing group does not use a selector.null
if no selector for group)public void setSelectConstName(java.lang.String name)
name
- (null
if no selector for group)public java.lang.String getPropName()
null
if none)public void setPropName(java.lang.String name)
name
- name (null
if none)public java.lang.String getFieldName()
null
if no field)public void setFieldName(java.lang.String name)
name
- (null
if no field)public java.lang.String getGetMethodName()
null
if no get-method)public void setGetMethodName(java.lang.String name)
name
- (null
if no get-method)public java.lang.String getSetMethodName()
null
if no set-method)public void setSetMethodName(java.lang.String name)
name
- (null
if no set-method)public java.lang.String getTestMethodName()
null
if no set-method)public void setTestMethodName(java.lang.String name)
name
- (null
if no set-method)public java.lang.String getFlagMethodName()
null
if no set-method)public void setFlagMethodName(java.lang.String name)
name
- (null
if no flag-method)public abstract java.lang.String describe(int depth)
depth
- current nesting depthprotected void appendDocText(java.lang.StringBuffer buff)
buff
- protected void appendSelectConstText(java.lang.StringBuffer buff)
buff
-