| java.lang.Object org.apache.beehive.netui.util.xml.DomUtils
DomUtils | final public class DomUtils (Code) | | This class exists simply because DOM is so inconvenient to use.
|
getAttributeValue | public static String getAttributeValue(Element element, String name)(Code) | | Retutns the value of the named attribute of the given
element. If there is no such attribute, returns null.
Parameters: element - element Parameters: name - name value |
getChildElementByName | public static Element getChildElementByName(Element parent, String name)(Code) | | Returns the first child element with the given name. Returns
null if not found.
Parameters: parent - parent element Parameters: name - name of the child element child element |
getChildElementText | public static String getChildElementText(Element parent, String name)(Code) | | Returns the text value of a child element. Returns
null if there is no child element found.
Parameters: parent - parent element Parameters: name - name of the child element text value |
getChildElementTextArr | public static String[] getChildElementTextArr(Element parent, String name)(Code) | | Returns an array of text values of a child element. Returns
null if there is no child element found.
Parameters: parent - parent element Parameters: name - name of the child element text value |
getChildElementsByName | public static List getChildElementsByName(Element parent, String name)(Code) | | Returns a list of child elements with the given
name. Returns an empty list if there are no such child
elements.
Parameters: parent - parent element Parameters: name - name of the child element child elements |
getElementText | public static String getElementText(Element element)(Code) | | Returns the text value of a child element. Returns
null if there is no child element found.
Parameters: element - element text value |
|
|