|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xerces.util.DOMUtil
Some useful utility methods. This class was modified in Xerces2 with a view to abstracting as much as possible away from the representation of the underlying parsed structure (i.e., the DOM). This was done so that, if Xerces ever adopts an in-memory representation more efficient than the DOM (such as a DTM), we should easily be able to convert our schema parsing to utilize it.
Constructor Summary | |
protected |
DOMUtil()
Deprecated. This class cannot be instantiated. |
Method Summary | |
static void |
copyInto(Node src,
Node dest)
Deprecated. Copies the source tree into the specified place in a destination tree. |
static Attr |
getAttr(Element elem,
String name)
Deprecated. |
static Attr |
getAttrNS(Element elem,
String nsUri,
String localName)
Deprecated. |
static Attr[] |
getAttrs(Element elem)
Deprecated. |
static String |
getAttrValue(Element elem,
String name)
Deprecated. |
static String |
getAttrValueNS(Element elem,
String nsUri,
String localName)
Deprecated. |
static String |
getChildText(Node node)
Deprecated. Returns the concatenated child text of the specified node. |
static Document |
getDocument(Node node)
Deprecated. |
static Element |
getFirstChildElement(Node parent)
Deprecated. Finds and returns the first child element node. |
static Element |
getFirstChildElement(Node parent,
String elemName)
Deprecated. Finds and returns the first child node with the given name. |
static Element |
getFirstChildElement(Node parent,
String[] elemNames)
Deprecated. Finds and returns the first child node with the given name. |
static Element |
getFirstChildElement(Node parent,
String elemName,
String attrName,
String attrValue)
Deprecated. Finds and returns the first child node with the given name and attribute name, value pair. |
static Element |
getFirstChildElementNS(Node parent,
String[][] elemNames)
Deprecated. Finds and returns the first child node with the given qualified name. |
static Element |
getFirstChildElementNS(Node parent,
String uri,
String localpart)
Deprecated. Finds and returns the first child node with the given qualified name. |
static Element |
getFirstVisibleChildElement(Node parent)
Deprecated. Finds and returns the first visible child element node. |
static Element |
getLastChildElement(Node parent)
Deprecated. Finds and returns the last child element node. |
static Element |
getLastChildElement(Node parent,
String elemName)
Deprecated. Finds and returns the last child node with the given name. |
static Element |
getLastChildElement(Node parent,
String[] elemNames)
Deprecated. Finds and returns the last child node with the given name. |
static Element |
getLastChildElement(Node parent,
String elemName,
String attrName,
String attrValue)
Deprecated. Finds and returns the last child node with the given name and attribute name, value pair. |
static Element |
getLastChildElementNS(Node parent,
String[][] elemNames)
Deprecated. Finds and returns the last child node with the given qualified name. |
static Element |
getLastChildElementNS(Node parent,
String uri,
String localpart)
Deprecated. Finds and returns the last child node with the given qualified name. |
static Element |
getLastVisibleChildElement(Node parent)
Deprecated. Finds and returns the last visible child element node. |
static String |
getLocalName(Node node)
Deprecated. returns local name of this element if not null, otherwise returns the name of the node |
static String |
getName(Node node)
Deprecated. |
static String |
getNamespaceURI(Node node)
Deprecated. |
static Element |
getNextSiblingElement(Node node)
Deprecated. Finds and returns the next sibling element node. |
static Element |
getNextSiblingElement(Node node,
String elemName)
Deprecated. Finds and returns the next sibling node with the given name. |
static Element |
getNextSiblingElement(Node node,
String[] elemNames)
Deprecated. Finds and returns the next sibling node with the given name. |
static Element |
getNextSiblingElement(Node node,
String elemName,
String attrName,
String attrValue)
Deprecated. Finds and returns the next sibling node with the given name and attribute name, value pair. |
static Element |
getNextSiblingElementNS(Node node,
String[][] elemNames)
Deprecated. Finds and returns the next sibling node with the given qualified name. |
static Element |
getNextSiblingElementNS(Node node,
String uri,
String localpart)
Deprecated. Finds and returns the next sibling node with the given qualified name. |
static Element |
getNextVisibleSiblingElement(Node node)
Deprecated. |
static Element |
getParent(Element elem)
Deprecated. |
static Element |
getRoot(Document doc)
Deprecated. |
static String |
getValue(Attr attribute)
Deprecated. |
static boolean |
isHidden(Node node)
Deprecated. |
static void |
setHidden(Node node)
Deprecated. |
static void |
setVisible(Node node)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DOMUtil()
Method Detail |
public static void copyInto(Node src, Node dest) throws DOMException
Note: This is an iterative implementation.
DOMException
public static Attr getAttr(Element elem, String name)
public static Attr getAttrNS(Element elem, String nsUri, String localName)
public static Attr[] getAttrs(Element elem)
public static String getAttrValue(Element elem, String name)
public static String getAttrValueNS(Element elem, String nsUri, String localName)
public static String getChildText(Node node)
Node.TEXT_NODE
or the children of any child
node that is of type Node.CDATA_SECTION_NODE
for the concatenation.
node
- The node to look at.public static Document getDocument(Node node)
public static Element getFirstChildElement(Node parent)
public static Element getFirstChildElement(Node parent, String elemName)
public static Element getFirstChildElement(Node parent, String[] elemNames)
public static Element getFirstChildElement(Node parent, String elemName, String attrName, String attrValue)
public static Element getFirstChildElementNS(Node parent, String[][] elemNames)
public static Element getFirstChildElementNS(Node parent, String uri, String localpart)
public static Element getFirstVisibleChildElement(Node parent)
public static Element getLastChildElement(Node parent)
public static Element getLastChildElement(Node parent, String elemName)
public static Element getLastChildElement(Node parent, String[] elemNames)
public static Element getLastChildElement(Node parent, String elemName, String attrName, String attrValue)
public static Element getLastChildElementNS(Node parent, String[][] elemNames)
public static Element getLastChildElementNS(Node parent, String uri, String localpart)
public static Element getLastVisibleChildElement(Node parent)
public static String getLocalName(Node node)
public static String getName(Node node)
public static String getNamespaceURI(Node node)
public static Element getNextSiblingElement(Node node)
public static Element getNextSiblingElement(Node node, String elemName)
public static Element getNextSiblingElement(Node node, String[] elemNames)
public static Element getNextSiblingElement(Node node, String elemName, String attrName, String attrValue)
public static Element getNextSiblingElementNS(Node node, String[][] elemNames)
public static Element getNextSiblingElementNS(Node node, String uri, String localpart)
public static Element getNextVisibleSiblingElement(Node node)
public static Element getParent(Element elem)
public static Element getRoot(Document doc)
public static String getValue(Attr attribute)
public static boolean isHidden(Node node)
public static void setHidden(Node node)
public static void setVisible(Node node)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |