|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.template.soy.data.SoyData
com.google.template.soy.data.SanitizedContent
@ParametersAreNonnullByDefault @Immutable public final class SanitizedContent
A chunk of sanitized content of a known kind, e.g. the output of an HTML sanitizer.
| Nested Class Summary | |
|---|---|
static class |
SanitizedContent.ContentKind
A kind of textual content. |
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compares this data object against another for equality in the sense of the operator '==' for Soy expressions. |
String |
getContent()
Returns a string of valid content with kind getContentKind(). |
SanitizedContent.ContentKind |
getContentKind()
Returns the kind of content. |
int |
hashCode()
|
boolean |
toBoolean()
Converts this data object into a boolean (e.g. |
String |
toString()
Converts this data object into a string (e.g. |
| Methods inherited from class com.google.template.soy.data.SoyData |
|---|
booleanValue, createFromExistingData, createFromExistingData, floatValue, integerValue, numberValue, stringValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getContent()
getContentKind().
public SanitizedContent.ContentKind getContentKind()
public boolean toBoolean()
SoyData
toBoolean in class SoyDatapublic String toString()
SoyData
toString in class SoyData
public boolean equals(@Nullable
Object other)
SoyData
equals in class SoyDataother - The other data object to compare against.
public int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||