|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sdicons.json.serializer.marshall.MarshallValueImpl
public class MarshallValueImpl
| Field Summary |
|---|
| Fields inherited from interface com.sdicons.json.serializer.marshall.MarshallValue |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, REFERENCE, SHORT |
| Constructor Summary | |
|---|---|
MarshallValueImpl(boolean aBool)
|
|
MarshallValueImpl(byte aByte)
|
|
MarshallValueImpl(char aChar)
|
|
MarshallValueImpl(double aDouble)
|
|
MarshallValueImpl(float aFloat)
|
|
MarshallValueImpl(int aInt)
|
|
MarshallValueImpl(long aLong)
|
|
MarshallValueImpl(Object aReference)
|
|
MarshallValueImpl(short aShort)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarshallValueImpl(boolean aBool)
public MarshallValueImpl(byte aByte)
public MarshallValueImpl(char aChar)
public MarshallValueImpl(double aDouble)
public MarshallValueImpl(float aFloat)
public MarshallValueImpl(int aInt)
public MarshallValueImpl(long aLong)
public MarshallValueImpl(short aShort)
public MarshallValueImpl(Object aReference)
| Method Detail |
|---|
public int getType()
MarshallValue
getType in interface MarshallValue
public boolean getBoolean()
throws MarshallException
MarshallValue
getBoolean in interface MarshallValueMarshallException - If it is not a boolean representation.
public byte getByte()
throws MarshallException
MarshallValue
getByte in interface MarshallValueMarshallException - If it is not a byte representation.
public short getShort()
throws MarshallException
MarshallValue
getShort in interface MarshallValueMarshallException - If it is not a short representation.
public char getChar()
throws MarshallException
MarshallValue
getChar in interface MarshallValueMarshallException - If it is not a char representation.
public int getInt()
throws MarshallException
MarshallValue
getInt in interface MarshallValueMarshallException - If it is not an int representation.
public long getLong()
throws MarshallException
MarshallValue
getLong in interface MarshallValueMarshallException - If it is not a long representation.
public float getFloat()
throws MarshallException
MarshallValue
getFloat in interface MarshallValueMarshallException - If it is not a float representation.
public double getDouble()
throws MarshallException
MarshallValue
getDouble in interface MarshallValueMarshallException - If it is not a double representation.
public Object getReference()
throws MarshallException
MarshallValue
getReference in interface MarshallValueMarshallException - If it is not a reference representation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||