oracle.uddi.message
Class DomUtil
java.lang.Object
|
+--oracle.uddi.message.DomUtil
- public class DomUtil
- extends java.lang.Object
Various helper methods (absented in DOM API) over DOM objects.
Type | Method |
static void |
addNonEmptyLeafElement(java.lang.String namespaceURI,
java.lang.String tagName,
java.lang.String value,
org.w3c.dom.Element parent)
|
static java.util.List |
getChildrenByTagName(org.w3c.dom.Element el,
java.lang.String name)
|
static java.util.List |
getChildrenByTagName(org.w3c.dom.Element el,
java.lang.String namespaceURI,
java.lang.String name)
|
static org.w3c.dom.Element |
getSingleChildByTagName(org.w3c.dom.Element el,
java.lang.String name)
|
static org.w3c.dom.Element |
getSingleChildByTagName(org.w3c.dom.Element el,
java.lang.String namespaceURI,
java.lang.String name)
|
static java.lang.String |
getTextTrimmed(org.w3c.dom.Node el)
Returns text contained in child elements of the
passed in element, with leading and trailing
whitespaces trimmed. |
static void |
setAttributeEvenIfNull(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.Object value)
|
static void |
setAttributeEvenIfNull(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.String value)
|
static void |
setNonNullAttribute(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.Object value)
|
static void |
setNonNullAttribute(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.String value)
|
static void |
setNonNullText(org.w3c.dom.Element el,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DomUtil
public DomUtil()
getTextTrimmed
public static java.lang.String getTextTrimmed(org.w3c.dom.Node el)
- Returns text contained in child elements of the
passed in element, with leading and trailing
whitespaces trimmed. The behavior is common
in UDDI messages.
- Parameters:
el
- Element- Returns:
- text with leading and trailing whitespaces trimmed.
getChildrenByTagName
public static java.util.List getChildrenByTagName(org.w3c.dom.Element el,
java.lang.String name)
getChildrenByTagName
public static java.util.List getChildrenByTagName(org.w3c.dom.Element el,
java.lang.String namespaceURI,
java.lang.String name)
- Parameters:
namespaceURI
- non null String of the requested namespace URI.
getSingleChildByTagName
public static org.w3c.dom.Element getSingleChildByTagName(org.w3c.dom.Element el,
java.lang.String name)
getSingleChildByTagName
public static org.w3c.dom.Element getSingleChildByTagName(org.w3c.dom.Element el,
java.lang.String namespaceURI,
java.lang.String name)
setNonNullAttribute
public static void setNonNullAttribute(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.String value)
setNonNullAttribute
public static void setNonNullAttribute(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.Object value)
setAttributeEvenIfNull
public static void setAttributeEvenIfNull(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.String value)
setAttributeEvenIfNull
public static void setAttributeEvenIfNull(org.w3c.dom.Element el,
java.lang.String attrName,
java.lang.Object value)
setNonNullText
public static void setNonNullText(org.w3c.dom.Element el,
java.lang.String value)
addNonEmptyLeafElement
public static void addNonEmptyLeafElement(java.lang.String namespaceURI,
java.lang.String tagName,
java.lang.String value,
org.w3c.dom.Element parent)
Copyright © 2001 - Oracle Corporation