org.ajax4jsf.templatecompiler.builder
Class StringUtils

java.lang.Object
  extended by org.ajax4jsf.templatecompiler.builder.StringUtils

public class StringUtils
extends java.lang.Object

String utilites.

Version:
$Revision: 1.1.2.1 $ $Date: 2006/12/20 18:56:21 $
Author:
ayukhovich@exadel.com (latest modification by $Author: alexeyyukhovich $)

Constructor Summary
StringUtils()
           
 
Method Summary
static java.lang.String getEscapedString(java.lang.String text)
           
static java.lang.String hex(char c)
          Convert a char to a "%hh" string.
static boolean isalnum(char c)
          Returns true if the char isalpha() or isdigit().
static boolean isalpha(char c)
          Returns true if the char isupper() or islower().
static boolean isdigit(char c)
          Returns true if the char is from '0' to '9' inclusive.
static boolean islower(char c)
          Returns true if the char is from 'a' to 'z' inclusive.
static boolean isupper(char c)
          Returns true if the char is from 'A' to 'Z' inclusive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

getEscapedString

public static java.lang.String getEscapedString(java.lang.String text)

hex

public static java.lang.String hex(char c)
Convert a char to a "%hh" string.

Parameters:
c - char to convert
Returns:
%hh representation of char.

isalnum

public static boolean isalnum(char c)
Returns true if the char isalpha() or isdigit().


isalpha

public static boolean isalpha(char c)
Returns true if the char isupper() or islower().


isupper

public static boolean isupper(char c)
Returns true if the char is from 'A' to 'Z' inclusive.


islower

public static boolean islower(char c)
Returns true if the char is from 'a' to 'z' inclusive.


isdigit

public static boolean isdigit(char c)
Returns true if the char is from '0' to '9' inclusive.



Copyright © 2009. All Rights Reserved.