Interface Variable
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Subinterfaces:
BuddyVariable
,IMMOItemVariable
,RoomVariable
,UserVariable
- All Known Implementing Classes:
MMOItemVariable
,SFSBuddyVariable
,SFSRoomVariable
,SFSUserVariable
public interface Variable extends java.lang.Cloneable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Boolean
getBoolValue()
Get the value of the variable as Booleanjava.lang.Double
getDoubleValue()
Get the value of the variable as Doublejava.lang.Integer
getIntValue()
Get the value of the variable as Integerjava.lang.String
getName()
ISFSArray
getSFSArrayValue()
Get the value of the variable as SFSArrayISFSObject
getSFSObjectValue()
Get the value of the variable as SFSObjectjava.lang.String
getStringValue()
Get the value of the variable as StringVariableType
getType()
Return the data type of the variablejava.lang.Object
getValue()
Get the value of the variable as Objectboolean
isNull()
Test if a variable is nullISFSArray
toSFSArray()
Private
-
-
-
Method Detail
-
getName
java.lang.String getName()
-
getType
VariableType getType()
Return the data type of the variable- Returns:
- the data type of the variable
- See Also:
VariableType
-
getValue
java.lang.Object getValue()
Get the value of the variable as Object- Returns:
- the value of the variable
-
getBoolValue
java.lang.Boolean getBoolValue()
Get the value of the variable as Boolean- Returns:
- the value of the variable
-
getIntValue
java.lang.Integer getIntValue()
Get the value of the variable as Integer- Returns:
- the value of the variable
-
getDoubleValue
java.lang.Double getDoubleValue()
Get the value of the variable as Double- Returns:
- the value of the variable
-
getStringValue
java.lang.String getStringValue()
Get the value of the variable as String- Returns:
- the value of the variable
-
getSFSObjectValue
ISFSObject getSFSObjectValue()
Get the value of the variable as SFSObject- Returns:
- the value of the variable
-
getSFSArrayValue
ISFSArray getSFSArrayValue()
Get the value of the variable as SFSArray- Returns:
- the value of the variable
-
isNull
boolean isNull()
Test if a variable is null- Returns:
- true if the variable is null
-
toSFSArray
ISFSArray toSFSArray()
Private
-
-