Difference between revisions of "XSLTUtils"

From GreenVulcano Wiki
Jump to: navigation, search
(Created page with "Class FQN: '''it.greenvulcano.util.xml.XSLTUtils''' ==Following the XSLTUtils public static methods== <syntaxhighlight lang="java5"> /** * @param str * @return the string in upp...")
 
Line 2: Line 2:
  
 
==Following the XSLTUtils public static methods==
 
==Following the XSLTUtils public static methods==
 +
*String manipulation:
 +
 
<syntaxhighlight lang="java5">
 
<syntaxhighlight lang="java5">
 
/**
 
/**
Line 46: Line 48:
 
*/
 
*/
 
public static String replace(String str, String find, String replace)
 
public static String replace(String str, String find, String replace)
 +
</syntaxhighlight>
  
 +
*Serialization:
 +
 +
<syntaxhighlight lang="java5">
 
/**
 
/**
 
* @see it.greenvulcano.util.xml.XMLUtils#serializeDOM_S(Node, String)
 
* @see it.greenvulcano.util.xml.XMLUtils#serializeDOM_S(Node, String)
 
*/
 
*/
 
public static String serializeNode(Node node, String encoding)
 
public static String serializeNode(Node node, String encoding)
 +
</syntaxhighlight>
  
 +
*Date/time manupulation:
 +
 +
<syntaxhighlight lang="java5">
 
/**
 
/**
 
* @see it.greenvulcano.util.xml.XSLTUtils#convertDate(String, String, String)
 
* @see it.greenvulcano.util.xml.XSLTUtils#convertDate(String, String, String)

Revision as of 16:17, 23 February 2012

Class FQN: it.greenvulcano.util.xml.XSLTUtils

Following the XSLTUtils public static methods

  • String manipulation:
/**
* @param str
* @return the string in upper case
*/
public static synchronized String upperCase(String str)

/**
* @param str
* @return the string in lower case
*/
public static synchronized String lowerCase(String str)

/**
* @param str
* @param width
* @param padding
* @return the string left filled with padding character passed
*/
public static synchronized String leftPad(String str, int width, char padding)

/**
* @param str
* @param width
* @param padding
* @return the string right filled with padding character passed
*/
public static synchronized String rightPad(String str, int width, char padding)

/**
* @param str
* @return the trimmed string
*
* @see java.lang.String#trim()
*/
public static synchronized String trim(String str)

/**
* @param str
* @param find
* @param replace
* @return the replaced string
*/
public static String replace(String str, String find, String replace)
  • Serialization:
/**
* @see it.greenvulcano.util.xml.XMLUtils#serializeDOM_S(Node, String)
*/
public static String serializeNode(Node node, String encoding)
  • Date/time manupulation:
/**
* @see it.greenvulcano.util.xml.XSLTUtils#convertDate(String, String, String)
*/
public static String convertDate(String date, String formatIn, String formatOut)

/**
* @see it.greenvulcano.util.xml.XSLTUtils#convertDate(String, String, String, String, String)
*/
public static String convertDate(String date, String formatIn, String tZoneIn, String formatOut, String tZoneOut)

/**
* @see it.greenvulcano.util.xml.XSLTUtils#nowToString(String)
*/
public static String nowToString(String formatOut)

/**
* @see it.greenvulcano.util.xml.XSLTUtils#nowToString(String, String)
*/
public static String nowToString(String tZoneOut, String formatOut)