protected static class ClassHolder.ParentNode extends ClassHolder.DataNode
Modifier and Type | Field and Description |
---|---|
private boolean |
m_complexCollection
Flag for a collection node that wraps some other structure (rather than a simple leaf node).
|
private java.lang.String |
m_prefix
Prefix for all contained value names (
null if none used). |
private boolean |
m_selectChecked
Flag for selection requirement checked.
|
private java.lang.String |
m_selectCheckMethod
Method name for selection check method.
|
private java.lang.String |
m_selectField
Field name for selector
|
private boolean |
m_selectNeeded
Flag for selection needed.
|
private boolean |
m_selectorExposed
Selection state exposed to user flag.
|
private int |
m_selectorType
Type of selector handling needed for group.
|
private java.lang.String |
m_selectSetMethod
Method name for selection set method.
|
private java.util.ArrayList |
m_values
Values in this group.
|
Constructor and Description |
---|
ParentNode(GroupItem group,
ClassHolder.ParentNode parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(ClassHolder.DataNode value)
Add a child node (which may be another parent) to this parent.
|
void |
adjustName()
Adjust name based on group nesting.
|
java.lang.String |
describe(int depth)
Generate the subtree description.
|
java.util.ArrayList |
getChildren()
Get child nodes of this parent.
|
java.lang.String |
getPrefix()
Get prefix for value names in group.
|
java.lang.String |
getSelectCheckMethod()
Get selector check method name.
|
java.lang.String |
getSelectField()
Get selector field name.
|
int |
getSelectorType()
Get the selector type.
|
java.lang.String |
getSelectSetMethod()
Get selector set method name.
|
boolean |
isComplexCollection()
Check if this is a collection that wraps some other structure (rather than a simple leaf node).
|
boolean |
isInterior()
Check if this is an interior node (always
true ). |
boolean |
isSelectorExposed()
Check if selector state should be exposed to user.
|
boolean |
isSelectorNeeded()
Check if a selector field is required for this group.
|
boolean |
isSelectorType()
Check if a selector field may be required for this group.
|
void |
setSelectCheckMethod(java.lang.String name)
Set selector check method name.
|
void |
setSelectField(java.lang.String name)
Set selector field name.
|
void |
setSelectSetMethod(java.lang.String name)
Set selector set method name.
|
appendDocText, appendSelectConstText, getBindingType, getDocumentation, getFieldName, getFlagMethodName, getGetMethodName, getItem, getParent, getPropName, getQName, getReferenceQName, getSchemaComponent, getSelectConstName, getSelectPropName, getSetMethodName, getTestMethodName, getType, isAny, isCollection, isIgnored, isList, isNamed, isOptional, isReference, setDocumentation, setFieldName, setFlagMethodName, setGetMethodName, setPropName, setSelectConstName, setSelectPropName, setSetMethodName, setTestMethodName
private final int m_selectorType
NestingCustomBase.SELECTION_UNCHECKED
and alternatives.private final boolean m_selectorExposed
private final java.lang.String m_prefix
null
if none used).private final java.util.ArrayList m_values
private boolean m_complexCollection
private java.lang.String m_selectField
private java.lang.String m_selectCheckMethod
private java.lang.String m_selectSetMethod
private boolean m_selectChecked
private boolean m_selectNeeded
public ParentNode(GroupItem group, ClassHolder.ParentNode parent)
group
- associated item groupparent
- containing nodepublic boolean isInterior()
true
).isInterior
in class ClassHolder.DataNode
true
for structure componentpublic boolean isSelectorNeeded()
public boolean isSelectorType()
public int getSelectorType()
public boolean isSelectorExposed()
public void adjustName()
public java.lang.String getPrefix()
null
if none used)protected void addChild(ClassHolder.DataNode value)
value
- public java.util.ArrayList getChildren()
public boolean isComplexCollection()
true
if wrapper collectionpublic java.lang.String getSelectField()
null
if no selector for group)public void setSelectField(java.lang.String name)
name
- (null
if no selector for group)public java.lang.String getSelectSetMethod()
null
if no selector set method for group)public void setSelectSetMethod(java.lang.String name)
name
- (null
if no selector set method for group)public java.lang.String getSelectCheckMethod()
null
if no selector check method for group)public void setSelectCheckMethod(java.lang.String name)
name
- (null
if no selector check method for group)public java.lang.String describe(int depth)
describe
in class ClassHolder.DataNode
depth
- current nesting depth