FileDocCategorySizeDatePackage
BooleanLiteral.javaAPI DocGlassfish v2 API3315Sat May 05 19:17:26 BST 2007org.apache.taglibs.standard.lang.jstl

BooleanLiteral

public class BooleanLiteral extends Literal

An expression representing a boolean literal value

author
Nathan Abramson - Art Technology Group
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: tcfujii $

Fields Summary
public static final BooleanLiteral
TRUE
public static final BooleanLiteral
FALSE
Constructors Summary
public BooleanLiteral(String pToken)
Constructor


  //-------------------------------------
      
     
  
    super (getValueFromToken (pToken));
  
Methods Summary
public java.lang.StringgetExpressionString()
Returns the expression in the expression language syntax

    return (getValue () == Boolean.TRUE) ? "true" : "false";
  
static java.lang.ObjectgetValueFromToken(java.lang.String pToken)
Parses the given token into the literal value

    return
      ("true".equals (pToken)) ?
      Boolean.TRUE :
      Boolean.FALSE;