|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.soap.util.xml.DOMUtils
| Constructor Summary | |
DOMUtils() | |
| Method Summary | |
static int |
countKids(Element elem, short nodeType)Count number of children of a certain type of the given element. |
static Element |
findChildElementWithAttribute(Element elem, java.lang.String attrName, java.lang.String attrValue)Return the first child element of the given element which has the given attribute with the given value. |
static java.lang.String |
getAttribute(Element el, java.lang.String attrName)Returns the value of an attribute of an element. |
static java.lang.String |
getAttributeNS(Element el, java.lang.String namespaceURI, java.lang.String localPart)Returns the value of an attribute of an element. |
static java.lang.String |
getChildCharacterData(Element parentEl)Concat all the text and cdata node children of this elem and return the resulting text. |
static Element |
getElementByID(Element el, java.lang.String id) |
static Element |
getFirstChildElement(Element elem)Return the first child element of the given element. |
static java.lang.String |
getNamespaceURIFromPrefix(Node context, java.lang.String prefix)Given a prefix and a node, return the namespace URI that the prefix has been associated with. |
static Element |
getNextSiblingElement(Element elem)Return the next sibling element of the given element. |
static QName |
getQualifiedAttributeValue(Element el, java.lang.String attrName) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DOMUtils()
| Method Detail |
public static java.lang.String getAttribute(Element el,
java.lang.String attrName)
el - Element whose attrib is looked forattrName - name of attribute to look for
public static java.lang.String getAttributeNS(Element el,
java.lang.String namespaceURI,
java.lang.String localPart)
el - Element whose attrib is looked fornamespaceURI - namespace URI of attribute to look forlocalPart - local part of attribute to look forpublic static java.lang.String getChildCharacterData(Element parentEl)
parentEl - the element whose cdata/text node values are to be combined.public static Element getFirstChildElement(Element elem)
elem - Element whose child is to be returnedpublic static Element getNextSiblingElement(Element elem)
elem - Element whose sibling element is to be returned
public static Element findChildElementWithAttribute(Element elem,
java.lang.String attrName,
java.lang.String attrValue)
elem - the element whose children are to be searchedattrName - the attrib that must be presentattrValue - the desired value of the attribute
public static int countKids(Element elem,
short nodeType)
elem - the element whose kids are to be counted
public static java.lang.String getNamespaceURIFromPrefix(Node context,
java.lang.String prefix)
context - the starting node (looks up recursively from here)prefix - the prefix to find an xmlns:prefix=uri for
public static Element getElementByID(Element el,
java.lang.String id)
public static QName getQualifiedAttributeValue(Element el,
java.lang.String attrName)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||