Class JsonWrapper

    • Constructor Detail

      • JsonWrapper

        public JsonWrapper()
    • Method Detail

      • getJsonName

        public java.lang.String getJsonName()
        Description copied from interface: JsonNode
        Returns the JSON field name.
        Specified by:
        getJsonName in interface JsonNode
        Returns:
        the JSON field name
      • setJsonName

        public void setJsonName​(java.lang.String jsonName)
      • getJsonType

        public char getJsonType()
        Description copied from interface: JsonNode
        Returns the type of node. If JsonNode.isJsonArray() is true, this method returns the component type of the array.
        Specified by:
        getJsonType in interface JsonNode
        Returns:
        the node type
      • setJsonType

        public void setJsonType​(char jsonType)
      • isJsonArray

        public boolean isJsonArray()
        Description copied from interface: JsonNode
        Returns whether this node is a JSON array.
        Specified by:
        isJsonArray in interface JsonNode
        Returns:
        true if this node a JSON array, false otherwise
      • setJsonArray

        public void setJsonArray​(boolean jsonArray)
      • getJsonArrayIndex

        public int getJsonArrayIndex()
        Description copied from interface: JsonNode
        Returns the index of this node in its parent array, or -1 if not applicable (i.e. its parent is an object).
        Specified by:
        getJsonArrayIndex in interface JsonNode
        Returns:
        the index of this node in its parent array
      • setJsonArrayIndex

        public void setJsonArrayIndex​(int jsonArrayIndex)
      • isNillable

        public boolean isNillable()
        Description copied from interface: JsonNode
        Returns whether this node may be explicitly set to null.
        Specified by:
        isNillable in interface JsonNode
        Returns:
        true if this node value may be set to null, false otherwise
      • setNillable

        public void setNillable​(boolean nillable)
      • isOptional

        public boolean isOptional()
        Description copied from interface: Parser
        Returns whether this node must exist during unmarshalling.
        Specified by:
        isOptional in interface Parser
        Overrides:
        isOptional in class DelegatingParser
        Returns:
        true if this node is optional during unmarshalling, false otherwise
      • setOptional

        public void setOptional​(boolean optional)