|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.http.representation.ValueBase
public abstract class ValueBase
Constructor Summary | |
---|---|
ValueBase()
|
Method Summary | |
---|---|
Value[] |
asArray()
Gets the representation of this value as an array of values. |
boolean |
asBoolean()
Gets the boolean representation of this value |
double |
asDouble()
Returns the representation of this value as a double |
Entity |
asEntity()
Returns the value as an entity |
int |
asInteger()
Returns the representation of this value as an integer |
LiteralValue |
asLiteral()
Returns this value as a literal. |
java.lang.String |
asString()
Returns the representation of this value as string (without the quotes). |
boolean |
isArray()
Checks whether this value is an array of values. |
boolean |
isBoolean()
Checks whether this value can be as a boolean (i.e., contains "true" or "false", case insensitive) |
boolean |
isDouble()
Checks whether this value can be represented as a double |
boolean |
isEntity()
Checks whether this value is an entity. |
boolean |
isInteger()
Checks whether this value is a valid integer. |
boolean |
isLiteral()
Checks whether this value is a literal (i.e., not an array or entity) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueBase()
Method Detail |
---|
public boolean isLiteral()
Value
isLiteral
in interface Value
public LiteralValue asLiteral()
Value
asLiteral
in interface Value
public Value[] asArray()
Value
asArray
in interface Value
public boolean asBoolean()
Value
asBoolean
in interface Value
public double asDouble()
Value
asDouble
in interface Value
public Entity asEntity()
Value
asEntity
in interface Value
public int asInteger()
Value
asInteger
in interface Value
public java.lang.String asString()
Value
asString
in interface Value
public boolean isArray()
Value
isArray
in interface Value
public boolean isBoolean()
Value
isBoolean
in interface Value
public boolean isDouble()
Value
isDouble
in interface Value
public boolean isEntity()
Value
isEntity
in interface Value
public boolean isInteger()
Value
isInteger
in interface Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |