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

Variable Index

 o FALSE_RESULT
 o TRUE_RESULT

Constructor Index

 o BooleanResult()
Creates a new BooleanResult with the default value
 o BooleanResult(boolean)
Creates a new BooleanResult with the given value
 o BooleanResult(ExprResult)
Creates a new BooleanResult by converting the given ExprResult to a boolean value

Method Index

 o booleanValue()
Returns the value of this ExprResult as a boolean
 o equals(ExprResult)
Returns true if the the given ExprResult is of the same type and has the same value as this ExprResult
 o getResultType()
Returns the type of this ExprResult
 o getValue()
Returns the value of this BooleanResult
 o numberValue()
Returns the value of this ExprResult as a double
 o setValue(boolean)
Sets the value of this BooleanResult
 o toJavaObject()
Returns the Java Object this ExprResult represents
 o toString()
Returns the value of this ExprResult as a String

Variables

 o FALSE_RESULT
 public static final BooleanResult FALSE_RESULT
 o TRUE_RESULT
 public static final BooleanResult TRUE_RESULT

Constructors

 o BooleanResult
 public BooleanResult()
Creates a new BooleanResult with the default value

 o BooleanResult
 public BooleanResult(boolean value)
Creates a new BooleanResult with the given value

Parameters:
value - the boolean to initialize the new BooleanResult to
 o 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.

Methods

 o booleanValue
 public boolean booleanValue()
Returns the value of this ExprResult as a boolean

Returns:
the value of this ExprResult as a boolean
 o 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

 o getValue
 public boolean getValue()
Returns the value of this BooleanResult

Returns:
the value of this BooleanResult
 o getResultType
 public short getResultType()
Returns the type of this ExprResult

Returns:
the type of this ExprResult
See Also:
ExprResult
 o numberValue
 public double numberValue()
Returns the value of this ExprResult as a double

Returns:
the value of this ExprResult as a double
 o setValue
 public void setValue(boolean value)
Sets the value of this BooleanResult

Parameters:
value - the boolean value to use as the result value
 o toJavaObject
 public Object toJavaObject()
Returns the Java Object this ExprResult represents

Returns:
the Java Object this ExprResult represents
 o 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