org.stanwood.media.source.xbmc.expression
Class BooleanValue

java.lang.Object
  extended by org.stanwood.media.source.xbmc.expression.Value
      extended by org.stanwood.media.source.xbmc.expression.BooleanValue

public class BooleanValue
extends Value

Used to store the value of a boolean value used by the expresion evalutor


Constructor Summary
BooleanValue(ValueType type, java.lang.Boolean value)
          Used to create a instance of the class
 
Method Summary
 Value and(Value value)
          Used to 'and' the parameter value from with value
 boolean booleanValue()
          Get the value as a boolean
 Value equals(Value value)
          Used to perform a == operation between this value and the value in the parameter
 Value not()
          Used to perform a not operation on this value and return the result
 Value notequals(Value value)
          Used to perform a != operation between this value and the value in the parameter
 Value or(Value value)
          Used to 'or' the parameter value from with value
 java.lang.String toString()
          
 
Methods inherited from class org.stanwood.media.source.xbmc.expression.Value
addition, divide, getType, getValue, greater, greaterEquals, less, lessEquals, multiply, setType, setValue, subtract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanValue

public BooleanValue(ValueType type,
                    java.lang.Boolean value)
Used to create a instance of the class

Parameters:
type - The type of the value
value - The raw value
Method Detail

booleanValue

public boolean booleanValue()
Get the value as a boolean

Returns:
The value

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

not

public Value not()
Used to perform a not operation on this value and return the result

Overrides:
not in class Value
Returns:
The not value of this value

and

public Value and(Value value)
Used to 'and' the parameter value from with value

Overrides:
and in class Value
Parameters:
value - The value to 'and' with
Returns:
The result of the operation

or

public Value or(Value value)
Used to 'or' the parameter value from with value

Overrides:
or in class Value
Parameters:
value - The value to 'or' with
Returns:
The result of the operation

notequals

public Value notequals(Value value)
Used to perform a != operation between this value and the value in the parameter

Overrides:
notequals in class Value
Parameters:
value - The value to perform the operation with
Returns:
The result

equals

public Value equals(Value value)
Used to perform a == operation between this value and the value in the parameter

Overrides:
equals in class Value
Parameters:
value - The value to perform the operation with
Returns:
The result