Class WebData


  • public class WebData
    extends Object
    WebData
    • Constructor Detail

      • WebData

        public WebData()
      • WebData

        public WebData​(String webAddressId)
    • Method Detail

      • getWebAddress

        public String getWebAddress()
        The URL of the website or the app store URL.
        Returns:
        webAddress
      • setWebAddress

        public void setWebAddress​(String webAddress)
      • getWebAddressId

        public String getWebAddressId()
        The unique identifier of the web address.
        Returns:
        webAddressId
      • 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 WebData
      • fromJson

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

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