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.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()ISFSArraygetSFSArrayValue()Get the value of the variable as SFSArrayISFSObjectgetSFSObjectValue()Get the value of the variable as SFSObjectjava.lang.StringgetStringValue()Get the value of the variable as StringVariableTypegetType()Return the data type of the variablejava.lang.ObjectgetValue()Get the value of the variable as ObjectbooleanisNull()Test if a variable is nullISFSArraytoSFSArray()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
-
-