|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.szegedi.expose.model.BooleanScalar
Provides singleton template models for representing boolean values.
| Field Summary | |
static BooleanScalar |
FALSE
TemplateScalarModel for representing boolean false value |
static BooleanScalar |
TRUE
TemplateScalarModel for representing boolean true value |
| Method Summary | |
java.lang.String |
getAsString()
"true" for the TRUE singleton, "false" for the FALSE singleton. |
static boolean |
getBoolean(java.lang.Object value)
Returns true if the passed object is the TRUE singleton. |
static java.lang.Boolean |
getBooleanObject(java.lang.Object value)
Returns Boolean.TRUE if the passed object is the TRUE singleton,
otherwise returns Boolean.FALSE. |
static BooleanScalar |
getScalar(boolean value)
Returns the boolean singleton TemplateScalarModel appropriate for representing the specified boolean value. |
static BooleanScalar |
getScalar(java.lang.Boolean value)
Returns the boolean singleton TemplateScalarModel appropriate for representing the specified boolean value. |
boolean |
isEmpty()
Returns true if this is the FALSE object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final BooleanScalar TRUE
public static final BooleanScalar FALSE
| Method Detail |
public static final BooleanScalar getScalar(boolean value)
public static final BooleanScalar getScalar(java.lang.Boolean value)
public static final boolean getBoolean(java.lang.Object value)
public static final java.lang.Boolean getBooleanObject(java.lang.Object value)
Boolean.TRUE if the passed object is the TRUE singleton,
otherwise returns Boolean.FALSE.public java.lang.String getAsString()
getAsString in interface freemarker.template.TemplateScalarModelpublic boolean isEmpty()
isEmpty in interface freemarker.template.TemplateModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||