Interface MarshallValue

  • All Known Implementing Classes:
    MarshallValueImpl

    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

      Fields 
      Modifier and Type Field Description
      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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
      java.lang.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.