Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.BooleangetBoolValue()Get the value of the variable as Booleanjava.lang.DoublegetDoubleValue()Get the value of the variable as Doublejava.lang.IntegergetIntValue()Get the value of the variable as Integerjava.lang.StringgetName()Return the name of the variablecom.smartfoxserver.v2.entities.data.ISFSArraygetSFSArrayValue()Get the value of the variable as SFSArraycom.smartfoxserver.v2.entities.data.ISFSObjectgetSFSObjectValue()Get the value of the variable as SFSObjectjava.lang.StringgetStringValue()Get the value of the variable as StringintgetType()Return the data type of the variablejava.lang.ObjectgetValue()Get the value of the variable as ObjectbooleanisNull()Test if a variable is nullcom.smartfoxserver.v2.entities.data.ISFSArraytoSFSArray()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
-
-