| java.lang.Object com.sun.jbi.common.DOMUtil
DOMUtil | public class DOMUtil (Code) | | This object provides utility methods to manipulate DOM tree.
author: Sun Microsystems, Inc. |
Field Summary | |
final public static DOMUtil | UTIL static object to access the methods of this object. |
Constructor Summary | |
public | DOMUtil() Creates a new instance of DOMUtil. |
UTIL | final public static DOMUtil UTIL(Code) | | static object to access the methods of this object.
|
DOMUtil | public DOMUtil()(Code) | | Creates a new instance of DOMUtil.
|
DOM2String | public String DOM2String(Document aDocument, Writer aWriter) throws Exception(Code) | | save document to stream.
Parameters: aDocument - Document Parameters: aWriter - is what the aDocument is serialized to. String representation of Document throws: Exception - If fails to construct a string. |
getChildElements | public NodeList getChildElements(Element aElement, String aElementTagName)(Code) | | get the children of the same type element tag name.
Parameters: aElement - Element for parent node Parameters: aElementTagName - String for tagname NodeList for list of children with the tagname |
getElement | public Element getElement(Document aParentDocument, String aTagName)(Code) | | gets the element.
Parameters: aParentDocument - Document for parent node Parameters: aTagName - String for tagname Element with tagname |
getElement | public Element getElement(Element elem, String tagName)(Code) | | gets the element.
Parameters: elem - Element for parent node Parameters: tagName - String for tagname Element with tagname |
getElementName | public String getElementName(Element aElement)(Code) | | get Element Tag Name with striped prefix.
Parameters: aElement - Element object String with stripped prefix |
getElementValue | public String getElementValue(Document doc, String elemName)(Code) | | gets the element value.
Parameters: doc - Document for parent node Parameters: elemName - String for element name Element value |
getElements | public NodeList getElements(Element aParentElement, String aTagName)(Code) | | gets list of elements.
Parameters: aParentElement - Element for parent Parameters: aTagName - String for tagname NodeList with tagname |
getElements | public NodeList getElements(Document aParentDocument, String aTagName)(Code) | | gets set of elements.
Parameters: aParentDocument - Document for parent node Parameters: aTagName - String for tagname NodeList with tagname |
getName | public String getName(String aName)(Code) | | strips the prefix of the name if present.
Parameters: aName - String value of Name with prefix String for name after striping prefix |
getTextData | public String getTextData(Element aElement)(Code) | | use this util method to retrieve a Text Data in a element.
Parameters: aElement - Element for text node String contains text |
setTextData | public void setTextData(Element aElement, String aData)(Code) | | use this util method to set a Text Data in a element.
Parameters: aElement - Element for text node Parameters: aData - String contains text |
|
|