public static class XmlCfg.XmlCfgNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.String,DataAccess.IntegerIx> |
allArgNames |
(package private) IndexMultiTable<java.lang.String,XmlCfg.AttribDstCheck> |
attribs
Key (attribute name with xmlns:name) and reflection path to store the attribute value.
|
private IndexMultiTable<java.lang.String,XmlCfg.AttribDstCheck> |
attribsForCheck
If not null, contains attribute names which's name and value are used to build the key to found the proper xml noce in the config file.
|
(package private) DataAccess.DatapathElement |
attribsUnspec
If set, the attrib dst for not found attributes to store in a common way.
|
(package private) boolean |
bCheckAttributeNode
The first node in some equal nodes in cfg, which determines the attributes used for check.
|
(package private) boolean |
bList
true then this element is stored with more as one instance.
|
(package private) boolean |
bStoreAttribsInNewContent
True if the value of attributes should be stored in the new content.
|
(package private) XmlCfg |
cfg
The whole config.
|
(package private) java.lang.String |
cfgSubtreeName
|
(package private) DataAccess.DatapathElement |
contentStorePath
Reflection path to store the content as String.
|
(package private) java.lang.String |
dstClassName |
(package private) DataAccess.DatapathElement |
elementStorePath
Reflection path where the content of that node will be stored.
|
private XmlCfg.XmlCfgNode |
parent
Parent node, to navigate in debug, to store this node if
attribsForCheck are present. |
(package private) java.util.Map<java.lang.String,XmlCfg.XmlCfgNode> |
subnodes
Key (tag name with xmlns:name) and configuration for a sub node.
|
(package private) java.lang.CharSequence |
tag |
Constructor and Description |
---|
XmlCfgNode(XmlCfg.XmlCfgNode parent,
XmlCfg cfg,
java.lang.CharSequence tag) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribStorePath(java.lang.String key,
java.lang.String sAttrValue)
This method is invoked from the xml configuration reader to create a new attribute entry for the found attribute.
|
(package private) void |
addFromSubtree(XmlCfg.XmlCfgNode subtree) |
(package private) void |
addSubnode(java.lang.String key,
XmlCfg.XmlCfgNode node) |
XmlCfg.XmlCfgNode |
addSubTree(java.lang.CharSequence name)
Invoked via reflection from
XmlCfg.newCfgCfg() -given configuration. |
(package private) XmlCfg.XmlCfgNode |
newElement(java.lang.CharSequence name)
This method is invoked from the xml configuration reader to create a new subNode for a found elmeent.
|
(package private) void |
setContentStorePath(java.lang.String text)
This method is invoked from the xml configuration reader to create a DataAccess element for the content of the node..
|
void |
setList() |
void |
setNewElementPath(java.lang.String dstPath)
Sets the path for the "new element" invocation.
|
java.lang.String |
toString() |
final XmlCfg cfg
XmlCfg.xmlnsAssign
is used to evaluate attributes.
The nameSpace is singular for the whole config.private final XmlCfg.XmlCfgNode parent
attribsForCheck
are present.DataAccess.DatapathElement elementStorePath
boolean bList
java.util.Map<java.lang.String,DataAccess.IntegerIx> allArgNames
boolean bCheckAttributeNode
boolean bStoreAttribsInNewContent
elementStorePath
It is set if at least one attributes with a store path (with "!...") is found.private IndexMultiTable<java.lang.String,XmlCfg.AttribDstCheck> attribsForCheck
IndexMultiTable<java.lang.String,XmlCfg.AttribDstCheck> attribs
DataAccess.DatapathElement attribsUnspec
java.util.Map<java.lang.String,XmlCfg.XmlCfgNode> subnodes
DataAccess.DatapathElement contentStorePath
final java.lang.CharSequence tag
java.lang.String dstClassName
java.lang.String cfgSubtreeName
XmlCfgNode(XmlCfg.XmlCfgNode parent, XmlCfg cfg, java.lang.CharSequence tag)
public void setNewElementPath(java.lang.String dstPath) throws java.text.ParseException
dstPath
- either a method or an access to a field.java.text.ParseException
public void setList()
public void addAttribStorePath(java.lang.String key, java.lang.String sAttrValue) throws java.text.ParseException
key
- ns:name of the found attribute in the config.xmldstPath
- datapath which is found as value in the config.xml. The datapath is used for the user.xml to store the attribute value.java.text.ParseException
void addFromSubtree(XmlCfg.XmlCfgNode subtree)
void addSubnode(java.lang.String key, XmlCfg.XmlCfgNode node)
XmlCfg.XmlCfgNode newElement(java.lang.CharSequence name)
name
- ns:tag of the found element in the config.xmlvoid setContentStorePath(java.lang.String text) throws java.text.ParseException
text
- should start with ! the dataPath to store the contentjava.text.ParseException
public XmlCfg.XmlCfgNode addSubTree(java.lang.CharSequence name)
XmlCfg.newCfgCfg()
-given configuration. It is invoked on <xmlinput:subtree name="..."
name
- Value from attribute namepublic java.lang.String toString()
toString
in class java.lang.Object