|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.xml.NodeImpl
org.enhydra.xml.ElementImpl
org.enhydra.xml.HashMapElement
org.enhydra.xml.SearchElement
org.enhydra.xml.XMLConfig
public class XMLConfig
Field Summary |
---|
Fields inherited from class org.enhydra.xml.SearchElement |
---|
ATTR_SEPARATOR, EQUAL_SEPARATOR, TAG_SEPARATOR |
Fields inherited from class org.enhydra.xml.HashMapElement |
---|
children |
Fields inherited from class org.enhydra.xml.ElementImpl |
---|
attributes, MASK_NAME, MASK_NAME_START |
Fields inherited from class org.enhydra.xml.NodeImpl |
---|
firstChild, lastChild, nextSibling, nodeName, nodeValue, numChildren, ownerDocument, parent, previousSibling, type |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
XMLConfig()
Constructs an empty SearchElement . |
|
XMLConfig(org.w3c.dom.Document ownerDoc,
java.lang.String name)
Constructs an XMLConfig with the given
document owner and node name. |
|
XMLConfig(org.w3c.dom.Node node)
Constructs an XMLConfig from a given node
(creates the children subtree too), as a Node |
|
XMLConfig(XMLConfig node)
Constructs a XMLConfig from the given node,
without creating entire children subtree. |
Method Summary | |
---|---|
XMLConfig |
getSection(java.lang.String name)
Returns XMLConfig as a subconfiguration with the given condition. |
static void |
main(java.lang.String[] args)
|
protected org.w3c.dom.Node |
newElementInstance(org.w3c.dom.Node node)
Creates new instance of the XMLConfig class from the given Node . |
static XMLConfig |
newXMLConfigInstance(org.w3c.dom.Document document)
Creates new instance of XMLConfig from a given document
as a Document |
Methods inherited from class org.enhydra.xml.SearchElement |
---|
getFirstSubElementByTagName, getFirstSubElementsByCondition, getSubElementsByAttrValue, getSubElementsByCondition, getSubElementsByTagName, getSubElementsByTagText, getText, newInstance, setAttr, setText |
Methods inherited from class org.enhydra.xml.HashMapElement |
---|
cloneNode, getChildrenByTagName, getElementsByTagName, getFirstChildByTagName, getNextSameNameNode, getText, hasElementChildNodes, insertBefore, removeChild, replaceChild, setText |
Methods inherited from class org.enhydra.xml.NodeImpl |
---|
appendChild, getChildNodes, getFirstChild, getLastChild, getLength, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, initNodeImplChildren, isSupported, item, newCommentInstance, newDefaultInstance, newTextInstance, normalize, setNodeValue, setPrefix, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, getChildNodes, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, isSupported, normalize, setNodeValue, setPrefix |
Constructor Detail |
---|
public XMLConfig()
SearchElement
.
public XMLConfig(org.w3c.dom.Document ownerDoc, java.lang.String name)
XMLConfig
with the given
document owner and node name.
ownerDoc
- the document owner of the node, as a Document
.nodeName
- the name of the node, as a String
.public XMLConfig(org.w3c.dom.Node node)
XMLConfig
from a given node
(creates the children subtree too), as a Node
node,
- as a Node
.public XMLConfig(XMLConfig node)
XMLConfig
from the given node,
without creating entire children subtree.
element,
- as a XMLConfig
.Method Detail |
---|
protected org.w3c.dom.Node newElementInstance(org.w3c.dom.Node node)
Node
.
newElementInstance
in class SearchElement
node,
- as a Node
.
public static XMLConfig newXMLConfigInstance(org.w3c.dom.Document document)
XMLConfig
from a given document
as a Document
document
- document ant type of node.
XMLConfig
from a given document.public XMLConfig getSection(java.lang.String name)
XMLConfig
as a subconfiguration with the given condition.
document
- document ant type of node.public static void main(java.lang.String[] args)
|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |