org.palo.api.impl.xml
Class XMLUtil

java.lang.Object
  extended by org.palo.api.impl.xml.XMLUtil

public class XMLUtil
extends java.lang.Object

Version:
$ID$

Method Summary
static java.lang.String dequote(java.lang.String str)
          Simply removes double-quotes from the beginning and end of given string
static java.lang.String dequoteString(java.lang.String strVal)
          Replaces all html/xml expressions for newline and carriage return within the given string value with their java counterpart, namely '\n' and '\r'.
static java.lang.String printQuoted(int i)
           
static java.lang.String printQuoted(java.lang.String s)
           
static java.lang.String quote(java.lang.String str)
          Simply surrounds given string with double-quotes
static java.lang.String quoteString(java.lang.String strVal)
          Replaces all newlines and carriage returns within the given string value with the corresponding html/xml expression
static java.lang.String strReplace(java.lang.String string, java.lang.String token, java.lang.String replaceString)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

quote

public static final java.lang.String quote(java.lang.String str)
Simply surrounds given string with double-quotes

Parameters:
str -
Returns:

dequote

public static final java.lang.String dequote(java.lang.String str)
Simply removes double-quotes from the beginning and end of given string

Parameters:
str -
Returns:

dequoteString

public static java.lang.String dequoteString(java.lang.String strVal)
Replaces all html/xml expressions for newline and carriage return within the given string value with their java counterpart, namely '\n' and '\r'.

Parameters:
strVal -
Returns:

quoteString

public static java.lang.String quoteString(java.lang.String strVal)
Replaces all newlines and carriage returns within the given string value with the corresponding html/xml expression

Parameters:
strVal -
Returns:

strReplace

public static java.lang.String strReplace(java.lang.String string,
                                          java.lang.String token,
                                          java.lang.String replaceString)

printQuoted

public static java.lang.String printQuoted(int i)

printQuoted

public static java.lang.String printQuoted(java.lang.String s)