org.yawlfoundation.yawl.util
Class JDOMUtil

java.lang.Object
  extended by org.yawlfoundation.yawl.util.JDOMUtil

public class JDOMUtil
extends Object

Some static utility methods for coverting JDOM Documents and Elements to Strings and files & vice versa.

Author:
Michael Adams 04/07/2006 Last date: 22/06/08

Constructor Summary
JDOMUtil()
           
 
Method Summary
static String decodeEscapes(String s)
           
static void documentToFile(org.jdom.Document doc, String path)
          saves a JDOM Document to a file
static String documentToString(org.jdom.Document doc)
           
static String elementToString(org.jdom.Element e)
           
static String elementToStringDump(org.jdom.Element e)
           
static String encodeEscapes(String s)
           
static org.jdom.Document fileToDocument(File file)
           
static org.jdom.Document fileToDocument(String path)
           
static String formatXMLString(String s)
           
static String formatXMLStringAsDocument(String s)
           
static String formatXMLStringAsElement(String s)
           
static String getDefaultValueForType(String dataType)
           
static org.jdom.Element selectElement(org.jdom.Document doc, String path)
           
static org.jdom.Document stringToDocument(String s)
           
static org.jdom.Element stringToElement(String s)
           
static String strip(String s)
           
static org.jdom.Element stripAttributes(org.jdom.Element e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMUtil

public JDOMUtil()
Method Detail

documentToString

public static String documentToString(org.jdom.Document doc)

elementToString

public static String elementToString(org.jdom.Element e)

elementToStringDump

public static String elementToStringDump(org.jdom.Element e)

stringToDocument

public static org.jdom.Document stringToDocument(String s)

stringToElement

public static org.jdom.Element stringToElement(String s)

fileToDocument

public static org.jdom.Document fileToDocument(String path)

fileToDocument

public static org.jdom.Document fileToDocument(File file)

documentToFile

public static void documentToFile(org.jdom.Document doc,
                                  String path)
saves a JDOM Document to a file


getDefaultValueForType

public static String getDefaultValueForType(String dataType)

encodeEscapes

public static String encodeEscapes(String s)

decodeEscapes

public static String decodeEscapes(String s)

selectElement

public static org.jdom.Element selectElement(org.jdom.Document doc,
                                             String path)

formatXMLString

public static String formatXMLString(String s)

formatXMLStringAsDocument

public static String formatXMLStringAsDocument(String s)

formatXMLStringAsElement

public static String formatXMLStringAsElement(String s)

strip

public static String strip(String s)

stripAttributes

public static org.jdom.Element stripAttributes(org.jdom.Element e)


Copyright © 2004-2012 The YAWL Foundation.