| |
|
| java.lang.Object org.apache.turbine.util.parser.ParserUtils
ParserUtils | abstract public class ParserUtils (Code) | | Static helpers for folding fields to upper or lower case
author: Henning P. Schmiedehausen version: $Id: ParserUtils.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public static String | convertAndTrim(String value) Convert a String value according to the url.case.folding property. | public static String | convertAndTrim(String value, int fold) A static version of the convert method, which
trims the string data and applies the conversion specified in
the property given by URL_CASE_FOLDING. | public static int | getUrlFolding() |
URL_CASE_FOLDING_KEY | final public static String URL_CASE_FOLDING_KEY(Code) | | Property for setting the URL folding value
|
URL_CASE_FOLDING_LOWER | final public static int URL_CASE_FOLDING_LOWER(Code) | | Folding set to "lowercase"
|
URL_CASE_FOLDING_LOWER_VALUE | final public static String URL_CASE_FOLDING_LOWER_VALUE(Code) | | Fold to lower case
|
URL_CASE_FOLDING_NONE | final public static int URL_CASE_FOLDING_NONE(Code) | | Folding set to "no folding"
|
URL_CASE_FOLDING_NONE_VALUE | final public static String URL_CASE_FOLDING_NONE_VALUE(Code) | | No folding
|
URL_CASE_FOLDING_UPPER | final public static int URL_CASE_FOLDING_UPPER(Code) | | Folding set to "uppercase"
|
URL_CASE_FOLDING_UPPER_VALUE | final public static String URL_CASE_FOLDING_UPPER_VALUE(Code) | | Fold to upper case
|
convertAndTrim | public static String convertAndTrim(String value)(Code) | | Convert a String value according to the url.case.folding property.
Parameters: value - the String to convert a new String. |
convertAndTrim | public static String convertAndTrim(String value, int fold)(Code) | | A static version of the convert method, which
trims the string data and applies the conversion specified in
the property given by URL_CASE_FOLDING. It returns a new
string so that it does not destroy the value data.
Parameters: value - A String to be processed. A new String converted to lowercase and trimmed. |
getUrlFolding | public static int getUrlFolding()(Code) | | Gets the folding value from the properties
The current Folding Value |
|
|
|