Class CommonField


  • public class CommonField
    extends Object
    CommonField
    • Constructor Detail

      • CommonField

        public CommonField()
    • Method Detail

      • getName

        public String getName()
        Name of the field. For example, Name of External Platform.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getVersion

        public String getVersion()
        Version of the field. For example, Version of External Platform.
        Returns:
        version
      • setVersion

        public void setVersion​(String version)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CommonField
      • fromJson

        public static CommonField fromJson​(String jsonString)
                                    throws IOException
        Create an instance of CommonField given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CommonField
        Throws:
        IOException - if the JSON string is invalid with respect to CommonField
      • toJson

        public String toJson()
        Convert an instance of CommonField to an JSON string
        Returns:
        JSON string