org.eclipse.higgins.cardstore.utils
Class XmlUtils
java.lang.Object
org.eclipse.higgins.cardstore.utils.XmlUtils
public class XmlUtils
- extends Object
|
Method Summary |
static void |
buildObjectFromXml(Object parentObj,
XMLSerializer obj,
Element parent,
String nodeName,
String namespaceUri)
|
static Document |
getDocumentRootFromParent(XMLSerializer child)
|
static String |
getString(Node node)
This method will return a java.lang.String representation of the XML given. |
static boolean |
isElementType(Element el,
String nodeName,
String namespaceUri)
|
static Document |
newDocument()
|
static int |
numberOfChildElementsOfType(Element parent,
String nodeName,
String namespaceUri)
|
static String |
retrieveAllTextFromChildTextNodes(Element parent)
|
static Element |
retrieveElementFromObject(Object obj)
|
static Element |
retrieveFirstChildMatchOfType(Element parent,
String nodeName,
String namespaceUri)
|
copyright
public static String copyright
XmlUtils
public XmlUtils()
retrieveElementFromObject
public static Element retrieveElementFromObject(Object obj)
throws UnsupportedObjectModel
- Throws:
UnsupportedObjectModel
isElementType
public static boolean isElementType(Element el,
String nodeName,
String namespaceUri)
numberOfChildElementsOfType
public static int numberOfChildElementsOfType(Element parent,
String nodeName,
String namespaceUri)
retrieveFirstChildMatchOfType
public static Element retrieveFirstChildMatchOfType(Element parent,
String nodeName,
String namespaceUri)
retrieveAllTextFromChildTextNodes
public static String retrieveAllTextFromChildTextNodes(Element parent)
buildObjectFromXml
public static void buildObjectFromXml(Object parentObj,
XMLSerializer obj,
Element parent,
String nodeName,
String namespaceUri)
throws UnsupportedObjectModel,
ExpectedObjectNotPresent
- Throws:
UnsupportedObjectModel
ExpectedObjectNotPresent
getDocumentRootFromParent
public static Document getDocumentRootFromParent(XMLSerializer child)
getString
public static String getString(Node node)
throws TransformerException
- This method will return a java.lang.String representation of the XML given.
This method should not be used for any code that does signature functionality.
- Parameters:
node -
- Returns:
-
- Throws:
TransformerException
newDocument
public static Document newDocument()
throws ParserConfigurationException
- Throws:
ParserConfigurationException