|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarshallValue
This interface represents an object that is the result of converting a JSON structure into a java structure. A dedicated interface is supplied because you cannot know in advance whether the result will be a primitive type or a reference type. This interface lets you investigate which kind of value is returned before you use it.
Field Summary | |
---|---|
static int |
BOOLEAN
|
static int |
BYTE
|
static int |
CHAR
|
static int |
DOUBLE
|
static int |
FLOAT
|
static int |
INT
|
static int |
LONG
|
static int |
REFERENCE
|
static int |
SHORT
|
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. |
Field Detail |
---|
static final int BOOLEAN
static final int BYTE
static final int SHORT
static final int CHAR
static final int INT
static final int LONG
static final int FLOAT
static final int DOUBLE
static final int REFERENCE
Method Detail |
---|
boolean getBoolean() throws MarshallException
MarshallException
- If it is not a boolean representation.byte getByte() throws MarshallException
MarshallException
- If it is not a byte representation.short getShort() throws MarshallException
MarshallException
- If it is not a short representation.char getChar() throws MarshallException
MarshallException
- If it is not a char representation.int getInt() throws MarshallException
MarshallException
- If it is not an int representation.long getLong() throws MarshallException
MarshallException
- If it is not a long representation.float getFloat() throws MarshallException
MarshallException
- If it is not a float representation.double getDouble() throws MarshallException
MarshallException
- If it is not a double representation.Object getReference() throws MarshallException
MarshallException
- If it is not a reference representation.int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |