|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SanitizedContent.ContentKind>
com.google.template.soy.data.SanitizedContent.ContentKind
public static enum SanitizedContent.ContentKind
A kind of textual content.
| Enum Constant Summary | |
|---|---|
ATTRIBUTES
An attribute name and value, such as dir="ltr". |
|
CSS
A CSS3 declaration, property, value or group of semicolon separated declarations. |
|
HTML
A snippet of HTML that does not start or end inside a tag, comment, entity, or DOCTYPE; and that does not contain any executable code (JS, <object>s, etc.) from a different
trust domain. |
|
JS
Executable Javascript code or expression, safe for insertion in a script-tag or event handler context, known to be free of any attacker-controlled scripts. |
|
JS_STR_CHARS
A sequence of code units that can appear between quotes (either single or double) in a JS program without causing a parse error, and without causing any side effects. |
|
TEXT
Unsanitized plain-text content. |
|
URI
A properly encoded portion of a URI. |
|
| Method Summary | |
|---|---|
static SanitizedContent.ContentKind |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SanitizedContent.ContentKind[] |
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 SanitizedContent.ContentKind HTML
<object>s, etc.) from a different
trust domain.
public static final SanitizedContent.ContentKind JS
public static final SanitizedContent.ContentKind JS_STR_CHARS
The content should not contain unescaped quotes, newlines, or anything else that would cause parsing to fail or to cause a JS parser to finish the string it is parsing inside the content.
The content must also not end inside an escape sequence ; no partial octal escape sequences
or odd number of '\'s at the end.
public static final SanitizedContent.ContentKind URI
public static final SanitizedContent.ContentKind ATTRIBUTES
dir="ltr".
public static final SanitizedContent.ContentKind CSS
public static final SanitizedContent.ContentKind TEXT
| Method Detail |
|---|
public static SanitizedContent.ContentKind[] values()
for (SanitizedContent.ContentKind c : SanitizedContent.ContentKind.values()) System.out.println(c);
public static SanitizedContent.ContentKind valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||