| java.lang.Object org.obe.xpdl.serializer.dom4j.Util
Util | final class Util (Code) | | Dom4J XPDL Serializer utility class.
author: Anthony Eden author: Adrian Price |
Method Summary | |
static Element | addElement(Element parent, String name) Adds a child element with the specific name to the given parent element
and returns the child element. | static Element | addElement(Element parent, String name, Date value) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, Date value, Date defaultValue) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, String value) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, String value, String defaultValue) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, URL value) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, URL value, URL defaultValue) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, Duration value) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static Element | addElement(Element parent, String name, Duration value, Duration defaultValue) Adds a child element with the specific name and the given value to the
given parent element and returns the child element. | static void | importFromText(String text, Element parent) | static void | normalizeNSPrefix(Element elem, Namespace ns) |
addElement | static Element addElement(Element parent, String name)(Code) | | Adds a child element with the specific name to the given parent element
and returns the child element. This method will use the namespace of the
parent element for the child element's namespace.
Parameters: parent - The parent element Parameters: name - The new child element name The child element |
addElement | static Element addElement(Element parent, String name, Date value)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value The child element |
addElement | static Element addElement(Element parent, String name, Date value, Date defaultValue)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
If the given value is null then the default value is used. If the value
is null then this method will not add the child element and will return
null.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value Parameters: defaultValue - The default value (if the value is null) The child element |
addElement | static Element addElement(Element parent, String name, String value)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value The child element |
addElement | static Element addElement(Element parent, String name, String value, String defaultValue)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
If the given value is null then the default value is used. If the value
is null then this method will not add the child element and will return
null.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value Parameters: defaultValue - The default value (if the value is null) The child element |
addElement | static Element addElement(Element parent, String name, URL value)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value The child element |
addElement | static Element addElement(Element parent, String name, URL value, URL defaultValue)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
If the given value is null then the default value is used. If the value
is null then this method will not add the child element and will return
null.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value Parameters: defaultValue - The default value (if the value is null) The child element |
addElement | static Element addElement(Element parent, String name, Duration value)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value The child element |
addElement | static Element addElement(Element parent, String name, Duration value, Duration defaultValue)(Code) | | Adds a child element with the specific name and the given value to the
given parent element and returns the child element. This method will use
the namespace of the parent element for the child element's namespace.
If the given value is null then the default value is used. If the value
is null then this method will not add the child element and will return
null.
Parameters: parent - The parent element Parameters: name - The new child element name Parameters: value - The value Parameters: defaultValue - The default value (if the value is null) The child element |
importFromText | static void importFromText(String text, Element parent) throws DocumentException(Code) | | |
normalizeNSPrefix | static void normalizeNSPrefix(Element elem, Namespace ns)(Code) | | |
|
|