Class JsonAtomicToken


  • public class JsonAtomicToken
    extends JsonObject
    Atomic token in a JSON string.
    • Constructor Detail

      • JsonAtomicToken

        public JsonAtomicToken()
        Constructs a new instance that still needs to be initialized.
      • JsonAtomicToken

        public JsonAtomicToken​(JsonAtomicToken.Type type)
        Constructs a new token with the specified type and value null.
        Parameters:
        type - the type
      • JsonAtomicToken

        public JsonAtomicToken​(JsonAtomicToken.Type type,
                               Object value)
        Constructs a new token with the specified type and value. The value depends on the type.
        Parameters:
        type - the type
        value - the value
    • Method Detail

      • setType

        public void setType​(JsonAtomicToken.Type type)
        Sets the type.
        Parameters:
        type - the type
      • getValue

        public Object getValue()
        Returns the value. The value depends on the type and can be null.
        Returns:
        the value or null
      • setValue

        public void setValue​(Object value)
        Sets the value. The value depends on the type and can be null.
        Parameters:
        value - the value or null