All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xsl.BooleanResult
com.kvisco.xsl.BooleanResult
- public class BooleanResult
- implements ExprResult
Represents a Boolean result
- Author:
- Keith Visco
-
FALSE_RESULT
-
-
TRUE_RESULT
-
-
BooleanResult()
- Creates a new BooleanResult with the default value
-
BooleanResult(boolean)
- Creates a new BooleanResult with the given value
-
BooleanResult(ExprResult)
- Creates a new BooleanResult by converting the given
ExprResult to a boolean value
-
booleanValue()
- Returns the value of this ExprResult as a boolean
-
equals(ExprResult)
- Returns true if the the given ExprResult is of the same type and
has the same value as this ExprResult
-
getResultType()
- Returns the type of this ExprResult
-
getValue()
- Returns the value of this BooleanResult
-
numberValue()
- Returns the value of this ExprResult as a double
-
setValue(boolean)
- Sets the value of this BooleanResult
-
toJavaObject()
- Returns the Java Object this ExprResult represents
-
toString()
- Returns the value of this ExprResult as a String
FALSE_RESULT
public static final BooleanResult FALSE_RESULT
TRUE_RESULT
public static final BooleanResult TRUE_RESULT
BooleanResult
public BooleanResult()
- Creates a new BooleanResult with the default value
BooleanResult
public BooleanResult(boolean value)
- Creates a new BooleanResult with the given value
- Parameters:
- value - the boolean to initialize the
new BooleanResult to
BooleanResult
public BooleanResult(ExprResult exprResult)
- Creates a new BooleanResult by converting the given
ExprResult to a boolean value
- Parameters:
- exprResult - the ExprResult that will get
converted to the boolean with which to initialize
the new BooleanResult to.
booleanValue
public boolean booleanValue()
- Returns the value of this ExprResult as a boolean
- Returns:
- the value of this ExprResult as a boolean
equals
public boolean equals(ExprResult exprResult)
- Returns true if the the given ExprResult is of the same type and
has the same value as this ExprResult
getValue
public boolean getValue()
- Returns the value of this BooleanResult
- Returns:
- the value of this BooleanResult
getResultType
public short getResultType()
- Returns the type of this ExprResult
- Returns:
- the type of this ExprResult
- See Also:
- ExprResult
numberValue
public double numberValue()
- Returns the value of this ExprResult as a double
- Returns:
- the value of this ExprResult as a double
setValue
public void setValue(boolean value)
- Sets the value of this BooleanResult
- Parameters:
- value - the boolean value to use as the result value
toJavaObject
public Object toJavaObject()
- Returns the Java Object this ExprResult represents
- Returns:
- the Java Object this ExprResult represents
toString
public String toString()
- Returns the value of this ExprResult as a String
- Returns:
- the value of this ExprResult as a String
All Packages Class Hierarchy This Package Previous Next Index