| java.lang.Object org.obe.xpdl.parser.dom4j.Util
Method Summary | |
public static Element | child(Element element, String name) Return the child element with the given name. | public static List | children(Element element, String name) Return the child elements with the given name. | public static Element | detach(Element element, QName qname) Detaches an element from its parent and returns a child node.
Parameters: element - The element to detach. Parameters: qname - The qualified name of the child element to return. | public static boolean | elementAsBoolean(Element element, String name) | public static Date | elementAsDate(Element element, String name) | public static Duration | elementAsDuration(Element element, String name) | public static DurationUnit | elementAsDurationUnit(Element element, String name) | public static int | elementAsInteger(Element element, String name) | public static String | elementAsString(Element element, String name) Return the value of the child element with the given name. | public static URL | elementAsURL(Element element, String name) | public static String | exportToText(Element element) |
child | public static Element child(Element element, String name)(Code) | | Return the child element with the given name. The element must be in the
same name space as the parent element.
Parameters: element - The parent element Parameters: name - The child element name The child element |
children | public static List children(Element element, String name)(Code) | | Return the child elements with the given name. The elements must be in
the same name space as the parent element.
Parameters: element - The parent element Parameters: name - The child element name The child elements |
detach | public static Element detach(Element element, QName qname)(Code) | | Detaches an element from its parent and returns a child node.
Parameters: element - The element to detach. Parameters: qname - The qualified name of the child element to return. The child element. |
elementAsBoolean | public static boolean elementAsBoolean(Element element, String name)(Code) | | |
elementAsInteger | public static int elementAsInteger(Element element, String name)(Code) | | |
elementAsString | public static String elementAsString(Element element, String name)(Code) | | Return the value of the child element with the given name. The element
must be in the same name space as the parent element.
Parameters: element - The parent element Parameters: name - The child element name The child element value |
|
|