it.gotoandplay.smartfoxserver.data
Class UserVariable

java.lang.Object
  extended by it.gotoandplay.smartfoxserver.data.UserVariable
Direct Known Subclasses:
RoomVariable

public class UserVariable
extends java.lang.Object

UserVariable.java

Version:
1.0

Field Summary
static java.lang.String TYPE_BOOLEAN
           
static java.lang.String TYPE_NULL
           
static java.lang.String TYPE_NUMBER
           
static java.lang.String TYPE_STRING
           
 
Constructor Summary
UserVariable(java.lang.String value, java.lang.String type)
          Default constructor
 
Method Summary
 java.lang.String getType()
           
 java.lang.String getValue()
           
 void setType(java.lang.String type)
          Set the variable type
 void setValue(java.lang.String value)
          Set the variable value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NULL

public static java.lang.String TYPE_NULL

TYPE_BOOLEAN

public static java.lang.String TYPE_BOOLEAN

TYPE_NUMBER

public static java.lang.String TYPE_NUMBER

TYPE_STRING

public static java.lang.String TYPE_STRING
Constructor Detail

UserVariable

public UserVariable(java.lang.String value,
                    java.lang.String type)
Default constructor

Parameters:
value - var value
type - var type
Method Detail

setType

public void setType(java.lang.String type)
Set the variable type

Parameters:
type - the type

getType

public java.lang.String getType()
Returns:
the variable type

setValue

public void setValue(java.lang.String value)
Set the variable value

Parameters:
value - the value

getValue

public java.lang.String getValue()
Returns:
the variable value