public abstract class SoyData extends SoyAbstractValue
Important: Even though this class is not marked 'final', do not extend this class.
| Constructor and Description |
|---|
SoyData() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
coerceToBoolean()
Coerces this value into a boolean.
|
String |
coerceToString()
Coerces this value into a string.
|
static SoyData |
createFromExistingData(Object obj)
Deprecated.
It's best to pass whatever object you have directly to the Soy templates you're
using -- Soy understands primitives, lists, and maps natively, and if you install runtime
support you can also pass protocol buffers. If you're interacting directly with the Soy
runtime and need SoyValue objects, use SoyValueHelper instead.
|
abstract boolean |
toBoolean()
Deprecated.
|
abstract String |
toString()
This was a required method in the old SoyData interface.
|
booleanValue, equals, floatValue, integerValue, longValue, numberValue, renderAndResolve, resolve, status, stringValue@Deprecated public static SoyData createFromExistingData(Object obj)
obj - The existing object or data structure to convert.SoyDataException - If the given object cannot be converted to SoyData.public boolean coerceToBoolean()
SoyValue@Deprecated public abstract boolean toBoolean()
public String coerceToString()
SoyValuepublic abstract String toString()