org.opencrx.application.airsync.utils
Class DOMUtils

java.lang.Object
  extended by org.opencrx.application.airsync.utils.DOMUtils

public final class DOMUtils
extends Object


Constructor Summary
DOMUtils()
           
 
Method Summary
static Document createDoc(String namespaceURI, String rootElement, String[]... namespaces)
           
static Element createElement(Element parent, String prefix, String elementName)
           
static Element createElementAndText(Element parent, String prefix, String elementName, String text)
           
static String getElementText(Element node)
           
static String getElementText(Element root, String prefix, String elementName)
           
static String getNamespaceURI(String prefix)
           
static List<String> getTexts(Element root, String prefix, String elementName)
           
static Element getUniqueElement(Element parent, String prefix, String elementName)
           
static Document parse(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtils

public DOMUtils()
Method Detail

getNamespaceURI

public static String getNamespaceURI(String prefix)

getElementText

public static String getElementText(Element root,
                                    String prefix,
                                    String elementName)

getElementText

public static String getElementText(Element node)

getTexts

public static List<String> getTexts(Element root,
                                    String prefix,
                                    String elementName)

getUniqueElement

public static Element getUniqueElement(Element parent,
                                       String prefix,
                                       String elementName)

createElementAndText

public static Element createElementAndText(Element parent,
                                           String prefix,
                                           String elementName,
                                           String text)

createElement

public static Element createElement(Element parent,
                                    String prefix,
                                    String elementName)

parse

public static Document parse(InputStream is)
                      throws SAXException,
                             IOException
Throws:
SAXException
IOException

createDoc

public static Document createDoc(String namespaceURI,
                                 String rootElement,
                                 String[]... namespaces)


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.