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

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

public class StringValue
extends Value

Used to store the value of a string value used by the expression evaluator


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

Constructor Detail

StringValue

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

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

stringValue

public java.lang.String stringValue()
Get the value as a boolean

Returns:
The value

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

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