EAF 7.6 Util

org.enhydra.xml
Class XMLConfig

java.lang.Object
  extended by org.enhydra.xml.NodeImpl
      extended by org.enhydra.xml.ElementImpl
          extended by org.enhydra.xml.HashMapElement
              extended by org.enhydra.xml.SearchElement
                  extended by org.enhydra.xml.XMLConfig
All Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.Node, org.w3c.dom.NodeList

public class XMLConfig
extends SearchElement

Version:
1.0
Author:
Tweety A class representing

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.ElementImpl
beginToString, compareDocumentPosition, endToString, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getElementsByTagNameNS, getFeature, getNamespaceURI, getSchemaTypeInfo, getTagName, getTextContent, getUserData, hasAttribute, hasAttributeNS, hasAttributes, isDefaultNamespace, isEqualNode, isSameNode, isValidName, lookupNamespaceURI, lookupPrefix, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setTextContent, setUserData
 
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

XMLConfig

public XMLConfig()
Constructs an empty SearchElement.


XMLConfig

public XMLConfig(org.w3c.dom.Document ownerDoc,
                 java.lang.String name)
Constructs an XMLConfig with the given document owner and node name.

Parameters:
ownerDoc - the document owner of the node, as a Document.
nodeName - the name of the node, as a String.

XMLConfig

public XMLConfig(org.w3c.dom.Node node)
Constructs an XMLConfig from a given node (creates the children subtree too), as a Node

Parameters:
node, - as a Node.

XMLConfig

public XMLConfig(XMLConfig node)
Constructs a XMLConfig from the given node, without creating entire children subtree.

Parameters:
element, - as a XMLConfig.
Method Detail

newElementInstance

protected org.w3c.dom.Node newElementInstance(org.w3c.dom.Node node)
Creates new instance of the XMLConfig class from the given Node.

Overrides:
newElementInstance in class SearchElement
Parameters:
node, - as a Node.
Returns:
new instance of the XMLConfig class.

newXMLConfigInstance

public static XMLConfig newXMLConfigInstance(org.w3c.dom.Document document)
Creates new instance of XMLConfig from a given document as a Document

Parameters:
document - document ant type of node.
Returns:
new instance of XMLConfig from a given document.

getSection

public XMLConfig getSection(java.lang.String name)
Returns XMLConfig as a subconfiguration with the given condition.

Parameters:
document - document ant type of node.

main

public static void main(java.lang.String[] args)

EAF 7.6 Util