sfs2x.client.entities.variables
Interface Variable

All Known Subinterfaces:
BuddyVariable, IMMOItemVariable, RoomVariable, UserVariable
All Known Implementing Classes:
BaseVariable, MMOItemVariable, SFSBuddyVariable, SFSRoomVariable, SFSUserVariable

public interface Variable


Method Summary
 java.lang.Boolean getBoolValue()
          Get the value of the variable as Boolean
 java.lang.Double getDoubleValue()
          Get the value of the variable as Double
 java.lang.Integer getIntValue()
          Get the value of the variable as Integer
 java.lang.String getName()
          Return the name of the variable
 com.smartfoxserver.v2.entities.data.ISFSArray getSFSArrayValue()
          Get the value of the variable as SFSArray
 com.smartfoxserver.v2.entities.data.ISFSObject getSFSObjectValue()
          Get the value of the variable as SFSObject
 java.lang.String getStringValue()
          Get the value of the variable as String
 int getType()
          Return the data type of the variable
 java.lang.Object getValue()
          Get the value of the variable as Object
 boolean isNull()
          Test if a variable is null
 com.smartfoxserver.v2.entities.data.ISFSArray toSFSArray()
          Private
 

Method Detail

getName

java.lang.String getName()
Return the name of the variable

Returns:
the variable's name

getType

int getType()
Return the data type of the variable

Returns:
the data type of the variable

getValue

java.lang.Object getValue()
Get the value of the variable as Object

Returns:
the value of the variable as Object

getBoolValue

java.lang.Boolean getBoolValue()
Get the value of the variable as Boolean

Returns:
the value of the variable as Boolean

getIntValue

java.lang.Integer getIntValue()
Get the value of the variable as Integer

Returns:
the value of the variable as Integer

getDoubleValue

java.lang.Double getDoubleValue()
Get the value of the variable as Double

Returns:
the value of the variable as Double

getStringValue

java.lang.String getStringValue()
Get the value of the variable as String

Returns:
the value of the variable as String

getSFSObjectValue

com.smartfoxserver.v2.entities.data.ISFSObject getSFSObjectValue()
Get the value of the variable as SFSObject

Returns:
the value of the variable as SFSObject

getSFSArrayValue

com.smartfoxserver.v2.entities.data.ISFSArray getSFSArrayValue()
Get the value of the variable as SFSArray

Returns:
the value of the variable as SFSArray

isNull

boolean isNull()
Test if a variable is null

Returns:
true if the variable is null

toSFSArray

com.smartfoxserver.v2.entities.data.ISFSArray toSFSArray()
Private