org.exoplatform.ws.frameworks.json.value.impl
Class NumericValue

java.lang.Object
  extended by org.exoplatform.ws.frameworks.json.value.JsonValue
      extended by org.exoplatform.ws.frameworks.json.value.impl.NumericValue
Direct Known Subclasses:
DoubleValue, LongValue

public abstract class NumericValue
extends JsonValue

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
NumericValue()
           
 
Method Summary
 boolean isNumeric()
          
abstract  String toString()
          
abstract  void writeTo(JsonWriter writer)
          Write value in given writer.
 
Methods inherited from class org.exoplatform.ws.frameworks.json.value.JsonValue
addElement, addElement, getBooleanValue, getByteValue, getDoubleValue, getElement, getElements, getFloatValue, getIntValue, getKeys, getLongValue, getNumberValue, getShortValue, getStringValue, isArray, isBoolean, isDouble, isLong, isNull, isObject, isString, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericValue

public NumericValue()
Method Detail

isNumeric

public boolean isNumeric()

Overrides:
isNumeric in class JsonValue
Returns:
true if value is 'numeric', false otherwise. Should be overridden.

toString

public abstract String toString()

Specified by:
toString in class JsonValue

writeTo

public abstract 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.