Class JsonNodeInfo

java.lang.Object
cn.sinozg.applet.common.core.model.JsonNodeInfo

public class JsonNodeInfo extends Object
json 节点信息
Since:
2023-08-25 21:41
Author:
xieyubin
  • Field Details

    • type

      private NodeType type
      类型
    • value

      private String value
    • index

      private int index
      为数组的时候取的下标 为负数 则反过来取值
  • Constructor Details

    • JsonNodeInfo

      public JsonNodeInfo()
    • JsonNodeInfo

      public JsonNodeInfo(int index, NodeType type)
    • JsonNodeInfo

      public JsonNodeInfo(String value, NodeType type)
  • Method Details

    • getType

      public NodeType getType()
      获取 类型
      Returns:
      type 类型
    • setType

      public void setType(NodeType type)
      设置 类型
      Parameters:
      type - 类型
    • getValue

      public String getValue()
      获取 值
      Returns:
      value 值
    • setValue

      public void setValue(String value)
      设置 值
      Parameters:
      value - 值
    • getIndex

      public int getIndex()
      获取 为数组的时候取的下标 为负数 则反过来取值
      Returns:
      index 为数组的时候取的下标 为负数 则反过来取值
    • setIndex

      public void setIndex(int index)
      设置 为数组的时候取的下标 为负数 则反过来取值
      Parameters:
      index - 为数组的时候取的下标 为负数 则反过来取值