|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<StringTools.ESCAPE> org.terrier.utility.StringTools.ESCAPE
public static enum StringTools.ESCAPE
Defines escape encodings that are supported. Most are implemented using org.apache.commons.lang.StringEscapeUtils. See methods escape() and unescape() in StringTools.
Enum Constant Summary | |
---|---|
HTML
Escape any characters unsuitable for HTML in the String |
|
JAVA
Escape any characters unsuitable for Java source code in the String |
|
JAVASCRIPT
Escape any characters unsuitable for Javascript source code in the String |
|
NONE
Perform no escaping on the String |
|
URL
Escape any characters unsuitable for a URL within the String |
|
XML
Escape any characters unsuitable for XML in the String |
Method Summary | |
---|---|
static StringTools.ESCAPE |
parse(java.lang.String s)
Parse a string into an ESCAPE value. |
static StringTools.ESCAPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static StringTools.ESCAPE[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final StringTools.ESCAPE NONE
public static final StringTools.ESCAPE HTML
public static final StringTools.ESCAPE XML
public static final StringTools.ESCAPE JAVA
public static final StringTools.ESCAPE JAVASCRIPT
public static final StringTools.ESCAPE URL
Method Detail |
---|
public static StringTools.ESCAPE[] values()
for (StringTools.ESCAPE c : StringTools.ESCAPE.values()) System.out.println(c);
public static StringTools.ESCAPE valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static StringTools.ESCAPE parse(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |