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

java.lang.Object
  extended by org.exoplatform.ws.frameworks.json.value.JsonValue
      extended by org.exoplatform.ws.frameworks.json.value.impl.NumericValue
          extended by org.exoplatform.ws.frameworks.json.value.impl.DoubleValue

public class DoubleValue
extends NumericValue

Version:
$Id: $
Author:
Andrey Parfonov

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

Constructor Detail

DoubleValue

public DoubleValue(double value)
Constructs new DoubleValue.

Parameters:
value - the value.
Method Detail

isDouble

public boolean isDouble()

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

getStringValue

public String getStringValue()

Overrides:
getStringValue in class JsonValue
Returns:
string value. Should be overridden.

getByteValue

public byte getByteValue()

Overrides:
getByteValue in class JsonValue
Returns:
byte value. Should be overridden.

getShortValue

public short getShortValue()

Overrides:
getShortValue in class JsonValue
Returns:
short Value. Should be overridden.

getIntValue

public int getIntValue()

Overrides:
getIntValue in class JsonValue
Returns:
int value. Should be overridden.

getLongValue

public long getLongValue()

Overrides:
getLongValue in class JsonValue
Returns:
long value. Should be overridden.

getFloatValue

public float getFloatValue()

Overrides:
getFloatValue in class JsonValue
Returns:
float value. Should be overridden.

getDoubleValue

public double getDoubleValue()

Overrides:
getDoubleValue in class JsonValue
Returns:
double value. Should be overridden.

toString

public String toString()

Specified by:
toString in class NumericValue

writeTo

public void writeTo(JsonWriter writer)
             throws JsonException
Write value in given writer.

Specified by:
writeTo in class NumericValue
Parameters:
writer - Writer.
Throws:
JsonException - if any errors occurs.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.