| java.lang.Object org.apache.beehive.controls.system.ejb.internal.DomUtils
DomUtils | final class DomUtils (Code) | | Some simple DOM utility methods.
|
getAttributeValue | 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 | 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 | 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 | 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 | 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 | 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 |
|
|