org.exoplatform.ws.frameworks.json.value.impl
Class BooleanValue
java.lang.Object
org.exoplatform.ws.frameworks.json.value.JsonValue
org.exoplatform.ws.frameworks.json.value.impl.BooleanValue
public class BooleanValue
- extends JsonValue
- Version:
- $Id: $
- Author:
- Andrey Parfonov
|
Constructor Summary |
BooleanValue(boolean value)
Constructs new BooleanValue. |
| Methods inherited from class org.exoplatform.ws.frameworks.json.value.JsonValue |
addElement, addElement, getByteValue, getDoubleValue, getElement, getElements, getFloatValue, getIntValue, getKeys, getLongValue, getNumberValue, getShortValue, getStringValue, isArray, isDouble, isLong, isNull, isNumeric, isObject, isString, size |
BooleanValue
public BooleanValue(boolean value)
- Constructs new BooleanValue.
- Parameters:
value - value.
isBoolean
public boolean isBoolean()
-
- Overrides:
isBoolean in class JsonValue
- Returns:
- true if value is 'boolean', false otherwise.
Should be overridden.
toString
public String toString()
-
- Specified by:
toString in class JsonValue
getBooleanValue
public boolean getBooleanValue()
-
- Overrides:
getBooleanValue in class JsonValue
- Returns:
- boolean value. Should be overridden.
writeTo
public void writeTo(JsonWriter writer)
throws JsonException
- Write value in given writer.
- Specified by:
writeTo in class JsonValue
- Parameters:
writer - Writer.
- Throws:
JsonException - if any errors occurs.
Copyright © 2009 eXo Platform SAS. All Rights Reserved.