Class UnixZfsJsonParse

  • All Implemented Interfaces:
    JsonParse

    public final class UnixZfsJsonParse
    extends Object
    implements JsonParse
    Extract UNIX zfs from json response
    Version:
    2.0
    Author:
    Frank Giordano
    • Method Detail

      • getInstance

        public static JsonParse getInstance()
        Get singleton instance
        Returns:
        UnixZfsParseResponse object
      • parseResponse

        public UnixZfs parseResponse()
        Transform data into UnixZfs object
        Specified by:
        parseResponse in interface JsonParse
        Returns:
        UssZfsItem object
      • setModeStr

        public void setModeStr​(String modeStr)
        Special field that holds a String comma delimited with mode permission values. Value is parsed by parent calling and set here to be included in main parse object done in parseResponse() method.
        Parameters:
        modeStr - mode permission(s) string value
      • setJsonObject

        public JsonParse setJsonObject​(org.json.simple.JSONObject data)
        Set the data to be parsed
        Specified by:
        setJsonObject in interface JsonParse
        Parameters:
        data - json data to parse
        Returns:
        JsonParseResponse this object