| java.lang.Object edu.iu.uis.eden.edl.EDLXmlUtils
EDLXmlUtils | public class EDLXmlUtils (Code) | | Contains a bunch of dom utility methods.
author: rkirkend author: ahamid |
Method Summary | |
public static void | addErrorsAndMessagesToDocument(Document doc, List errors, List messages) | public static void | addGlobalErrorMessage(Document dom, String errorMessage) | public static Element | createChildElement(Element parentElement, String elementName) | public static Element | createFieldDataElement(Element parentVersionElement, MatchingParam matchingParam) | public static Element | createTextElementOnParent(Element parent, String childElementName, String text) | public static Element | getChildElement(Node parent, String name) Returns a node child with the specified tag name of the specified parent node,
or null if no such child node is found. | public static String | getChildElementTextValue(Node parent, String name) | public static Element | getDataFromEDLDocument(Element edlContent, boolean create) | public static DocumentBuilder | getDocumentBuilder() | public static Element | getDocumentStateElement(Document dom) | public static Element | getEDLContent(Document displayDoc, boolean create) | public static Element | getOrCreateChildElement(Element parent, String name, boolean create) | public static Element | getVersionFromData(Element dataElement, Integer versionCount) |
addErrorsAndMessagesToDocument | public static void addErrorsAndMessagesToDocument(Document doc, List errors, List messages)(Code) | | Adds the specified errors and messages to the <documentState> element of the
given EDL doc
Parameters: doc - the EDL doc Parameters: errors - the list of error Strings Parameters: messages - the list of message Strings |
addGlobalErrorMessage | public static void addGlobalErrorMessage(Document dom, String errorMessage)(Code) | | |
getChildElement | public static Element getChildElement(Node parent, String name)(Code) | | Returns a node child with the specified tag name of the specified parent node,
or null if no such child node is found.
Parameters: parent - the parent node Parameters: name - the name of the child node child node if found, null otherwise |
getChildElementTextValue | public static String getChildElementTextValue(Node parent, String name)(Code) | | Returns the text value of a child element with the given name, of the given parent element,
or null if the child does not exist or does not have a child text node
Parameters: parent - parent element Parameters: name - name of child element the text value of a child element with the given name, of the given parent element,or null if the child does not exist or does not have a child text node |
getDataFromEDLDocument | public static Element getDataFromEDLDocument(Element edlContent, boolean create)(Code) | | |
getDocumentBuilder | public static DocumentBuilder getDocumentBuilder()(Code) | | Returns a valid DocumentBuilder
a valid DocumentBuilder |
getOrCreateChildElement | public static Element getOrCreateChildElement(Element parent, String name, boolean create)(Code) | | Returns, and creates if absent, a child element
Parameters: parent - the parent element Parameters: name - the name of the child element to create and/or return reference to the child element |
|
|