public static enum StringTools.ESCAPE extends Enum<StringTools.ESCAPE>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
static StringTools.ESCAPE |
parse(String s)
Parse a string into an ESCAPE value.
|
static StringTools.ESCAPE |
valueOf(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.
|
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
public static StringTools.ESCAPE[] values()
for (StringTools.ESCAPE c : StringTools.ESCAPE.values()) System.out.println(c);
public static StringTools.ESCAPE valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static StringTools.ESCAPE parse(String s)
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow