org.eclipse.higgins.cardstore.utils
Class XmlUtils

java.lang.Object
  extended byorg.eclipse.higgins.cardstore.utils.XmlUtils

public class XmlUtils
extends Object


Field Summary
static String copyright
           
 
Constructor Summary
XmlUtils()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

XmlUtils

public XmlUtils()
Method Detail

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