com.google.clearsilver.jsilver.autoescape
Enum AutoEscapeContext.AutoEscapeState

java.lang.Object
  extended by java.lang.Enum<AutoEscapeContext.AutoEscapeState>
      extended by com.google.clearsilver.jsilver.autoescape.AutoEscapeContext.AutoEscapeState
All Implemented Interfaces:
Serializable, Comparable<AutoEscapeContext.AutoEscapeState>
Enclosing class:
AutoEscapeContext

public static enum AutoEscapeContext.AutoEscapeState
extends Enum<AutoEscapeContext.AutoEscapeState>

Enum representing states of the data being parsed. This enumeration lists all the states in which autoescaping would have some effect.


Enum Constant Summary
ATTR
           
ATTR_CSS
           
ATTR_JS
           
ATTR_UNQUOTED_JS
           
ATTR_URI
           
ATTR_URI_START
           
HTML
           
JS
           
JS_UNQUOTED
           
STYLE
           
UNQUOTED_ATTR
           
UNQUOTED_ATTR_CSS
           
UNQUOTED_ATTR_JS
           
UNQUOTED_ATTR_UNQUOTED_JS
           
UNQUOTED_ATTR_URI
           
UNQUOTED_ATTR_URI_START
           
 
Method Summary
 EscapeMode getEscapeMode()
           
 String getFunctionName()
           
static AutoEscapeContext.AutoEscapeState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AutoEscapeContext.AutoEscapeState[] 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

HTML

public static final AutoEscapeContext.AutoEscapeState HTML

JS

public static final AutoEscapeContext.AutoEscapeState JS

STYLE

public static final AutoEscapeContext.AutoEscapeState STYLE

JS_UNQUOTED

public static final AutoEscapeContext.AutoEscapeState JS_UNQUOTED

ATTR

public static final AutoEscapeContext.AutoEscapeState ATTR

UNQUOTED_ATTR

public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR

ATTR_URI

public static final AutoEscapeContext.AutoEscapeState ATTR_URI

UNQUOTED_ATTR_URI

public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_URI

ATTR_URI_START

public static final AutoEscapeContext.AutoEscapeState ATTR_URI_START

UNQUOTED_ATTR_URI_START

public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_URI_START

ATTR_JS

public static final AutoEscapeContext.AutoEscapeState ATTR_JS

ATTR_UNQUOTED_JS

public static final AutoEscapeContext.AutoEscapeState ATTR_UNQUOTED_JS

UNQUOTED_ATTR_JS

public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_JS

UNQUOTED_ATTR_UNQUOTED_JS

public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_UNQUOTED_JS

ATTR_CSS

public static final AutoEscapeContext.AutoEscapeState ATTR_CSS

UNQUOTED_ATTR_CSS

public static final AutoEscapeContext.AutoEscapeState UNQUOTED_ATTR_CSS
Method Detail

values

public static AutoEscapeContext.AutoEscapeState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AutoEscapeContext.AutoEscapeState c : AutoEscapeContext.AutoEscapeState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AutoEscapeContext.AutoEscapeState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFunctionName

public String getFunctionName()

getEscapeMode

public EscapeMode getEscapeMode()


Copyright © 2010-2012 Google. All Rights Reserved.