org.exoplatform.ws.frameworks.json.value.impl
Class StringValue
java.lang.Object
org.exoplatform.ws.frameworks.json.value.JsonValue
org.exoplatform.ws.frameworks.json.value.impl.StringValue
public class StringValue
- extends JsonValue
- Version:
- $Id: $
- Author:
- Andrey Parfonov
| Methods inherited from class org.exoplatform.ws.frameworks.json.value.JsonValue |
addElement, addElement, getBooleanValue, getByteValue, getDoubleValue, getElement, getElements, getFloatValue, getIntValue, getKeys, getLongValue, getNumberValue, getShortValue, isArray, isBoolean, isDouble, isLong, isNull, isNumeric, isObject, size |
StringValue
public StringValue(String value)
- Constructs new StringValue.
- Parameters:
value - the value.
isString
public boolean isString()
-
- Overrides:
isString in class JsonValue
- Returns:
- true if value is 'String', false otherwise.
Should be overridden.
getStringValue
public String getStringValue()
-
- Overrides:
getStringValue in class JsonValue
- Returns:
- string value. Should be overridden.
toString
public String toString()
-
- Specified by:
toString in class JsonValue
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.