org.gcube.portlets.admin.irbootstrapperportlet.gwt.server
Class Util

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.Util

public class Util
extends Object

Author:
Spyros Boutsis, NKUA

Constructor Summary
Util()
           
 
Method Summary
static Document copyNodeAsNewDocument(Node src)
          Creates a new DOM Document object as a copy of a given node along with its full subtree
static void initialize()
           
static Document parseXMLString(String XMLdoc)
          Parses an XML string and transforms it to a DOM tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

initialize

public static void initialize()
                       throws Exception
Throws:
Exception

copyNodeAsNewDocument

public static Document copyNodeAsNewDocument(Node src)
                                      throws Exception
Creates a new DOM Document object as a copy of a given node along with its full subtree

Parameters:
src - the source node to copy
Returns:
the new DOM Document
Throws:
Exception

parseXMLString

public static Document parseXMLString(String XMLdoc)
                               throws ParserConfigurationException,
                                      SAXException,
                                      IOException
Parses an XML string and transforms it to a DOM tree.

Parameters:
XMLdoc - The XML string to parse
Returns:
A Document object describing the DOM tree
Throws:
ParserConfigurationException - an error occurred
SAXException - an error occurred
IOException - an error occurred


Copyright © 2013. All Rights Reserved.