public class SerializerValueImpl extends Object implements SerializerValue
Constructor and Description |
---|
SerializerValueImpl(boolean aBool) |
SerializerValueImpl(byte aByte) |
SerializerValueImpl(char aChar) |
SerializerValueImpl(double aDouble) |
SerializerValueImpl(float aFloat) |
SerializerValueImpl(int aInt) |
SerializerValueImpl(long aLong) |
SerializerValueImpl(Object aReference) |
SerializerValueImpl(short aShort) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean()
Get the primitive boolean value.
|
byte |
getByte()
Get the primitive byte value.
|
char |
getChar()
Get the primitive char value.
|
double |
getDouble()
Get the primitive double value.
|
float |
getFloat()
Get the primitive float value.
|
int |
getInt()
Get the primitive int value.
|
long |
getLong()
Get the primitive long value.
|
Object |
getReference()
Get the reference to a Java object.
|
short |
getShort()
Get the primitive short value.
|
int |
getType()
Get the type of the value so that you can access its value safely.
|
public SerializerValueImpl(boolean aBool)
public SerializerValueImpl(byte aByte)
public SerializerValueImpl(char aChar)
public SerializerValueImpl(double aDouble)
public SerializerValueImpl(float aFloat)
public SerializerValueImpl(int aInt)
public SerializerValueImpl(long aLong)
public SerializerValueImpl(short aShort)
public SerializerValueImpl(Object aReference)
public int getType()
SerializerValue
getType
in interface SerializerValue
public boolean getBoolean() throws SerializerException
SerializerValue
getBoolean
in interface SerializerValue
SerializerException
- If it is not a boolean representation.public byte getByte() throws SerializerException
SerializerValue
getByte
in interface SerializerValue
SerializerException
- If it is not a byte representation.public short getShort() throws SerializerException
SerializerValue
getShort
in interface SerializerValue
SerializerException
- If it is not a short representation.public char getChar() throws SerializerException
SerializerValue
getChar
in interface SerializerValue
SerializerException
- If it is not a char representation.public int getInt() throws SerializerException
SerializerValue
getInt
in interface SerializerValue
SerializerException
- If it is not an int representation.public long getLong() throws SerializerException
SerializerValue
getLong
in interface SerializerValue
SerializerException
- If it is not a long representation.public float getFloat() throws SerializerException
SerializerValue
getFloat
in interface SerializerValue
SerializerException
- If it is not a float representation.public double getDouble() throws SerializerException
SerializerValue
getDouble
in interface SerializerValue
SerializerException
- If it is not a double representation.public Object getReference() throws SerializerException
SerializerValue
getReference
in interface SerializerValue
SerializerException
- If it is not a reference representation.Copyright © 2012. All Rights Reserved.