org.japano.pagenode.jstl
Class Functions

java.lang.Object
  extended by org.japano.pagenode.jstl.Functions

public class Functions
extends java.lang.Object

Contains all JSTL functions.

Version:
$Id: Functions.java,v 1.3 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Method Summary
static boolean contains(java.lang.String input, java.lang.String sub)
          Tests if an input string contains the specified substring.
static boolean containsIgnoreCase(java.lang.String input, java.lang.String sub)
          Tests if an input string contains the specified substring in a case insensitive way.
static boolean endsWith(java.lang.String input, java.lang.String suffix)
          Tests if an input string ends with the specified suffix.
static java.lang.String escapeXml(java.lang.String input)
          Escapes characters that could be interpreted as XML markup.
static int indexOf(java.lang.String input, java.lang.String sub)
          Returns the index withing a string of the first occurrence of a specified substring.
static java.lang.String join(java.lang.String[] array, java.lang.String sep)
          Joins all elements of an array into a string.
static int length(java.lang.Object o)
          Returns the number of items in a collection, or the number of characters in a string.
static java.lang.String replace(java.lang.String input, java.lang.String before, java.lang.String after)
          Returns a string resulting from replacing in an input string all occurrences of a "before" string into an "after" substring.
static java.lang.String[] split(java.lang.String input, java.lang.String seperator)
          Splits a string into an array of substrings.
static boolean startsWith(java.lang.String input, java.lang.String prefix)
          Tests if an input string starts with the specified prefix.
static java.lang.String substring(java.lang.String input, int begin, int end)
          Returns a subset of a string.
static java.lang.String substringAfter(java.lang.String input, java.lang.String sub)
          Returns a subset of a string following a specific substring.
static java.lang.String substringBefore(java.lang.String input, java.lang.String sub)
          Returns a subset of a string before a specific substring.
static java.lang.String toLowerCase(java.lang.String input)
          Converts all of the characters of a string to lower case.
static java.lang.String toUpperCase(java.lang.String input)
          Converts all of the characters of a string to upper case.
static java.lang.String trim(java.lang.String input)
          Removes white spaces from both ends of a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contains

public static boolean contains(java.lang.String input,
                               java.lang.String sub)
Tests if an input string contains the specified substring.


containsIgnoreCase

public static boolean containsIgnoreCase(java.lang.String input,
                                         java.lang.String sub)
Tests if an input string contains the specified substring in a case insensitive way.


endsWith

public static boolean endsWith(java.lang.String input,
                               java.lang.String suffix)
Tests if an input string ends with the specified suffix.


escapeXml

public static java.lang.String escapeXml(java.lang.String input)
Escapes characters that could be interpreted as XML markup.


indexOf

public static int indexOf(java.lang.String input,
                          java.lang.String sub)
Returns the index withing a string of the first occurrence of a specified substring.


join

public static java.lang.String join(java.lang.String[] array,
                                    java.lang.String sep)
Joins all elements of an array into a string.


length

public static int length(java.lang.Object o)
Returns the number of items in a collection, or the number of characters in a string.


replace

public static java.lang.String replace(java.lang.String input,
                                       java.lang.String before,
                                       java.lang.String after)
Returns a string resulting from replacing in an input string all occurrences of a "before" string into an "after" substring.


split

public static java.lang.String[] split(java.lang.String input,
                                       java.lang.String seperator)
Splits a string into an array of substrings.


startsWith

public static boolean startsWith(java.lang.String input,
                                 java.lang.String prefix)
Tests if an input string starts with the specified prefix.


substring

public static java.lang.String substring(java.lang.String input,
                                         int begin,
                                         int end)
Returns a subset of a string.


substringAfter

public static java.lang.String substringAfter(java.lang.String input,
                                              java.lang.String sub)
Returns a subset of a string following a specific substring.


substringBefore

public static java.lang.String substringBefore(java.lang.String input,
                                               java.lang.String sub)
Returns a subset of a string before a specific substring.


toLowerCase

public static java.lang.String toLowerCase(java.lang.String input)
Converts all of the characters of a string to lower case.


toUpperCase

public static java.lang.String toUpperCase(java.lang.String input)
Converts all of the characters of a string to upper case.


trim

public static java.lang.String trim(java.lang.String input)
Removes white spaces from both ends of a string.