Class ImageResource

    • Constructor Detail

      • ImageResource

        public ImageResource()
    • Method Detail

      • getSrc

        public final String getSrc()
        Returns the URL (src) of the image resource.
        Returns:
        the URL, or null if not specified
      • setSrc

        public final void setSrc​(String value)
        Sets the URL (src) of the image resource.
        Parameters:
        value - the new URL
      • getSizes

        public final String getSizes()
        Returns the sizes of the image resource.
        Returns:
        the sizes, or null if not specified
      • setSizes

        public final void setSizes​(String value)
        Sets the sizes of the image resource.
        Parameters:
        value - the new sizes
      • getType

        public final String getType()
        Returns the media type of the image resource.
        Returns:
        the media type, or null if not specified
      • setType

        public final void setType​(String value)
        Sets the media type of the image resource.
        Parameters:
        value - the new type
      • toJsonObject

        public final javax.json.JsonObject toJsonObject()
        Returns a JSON object that represents this image resource.
        Returns:
        a JSON object
      • clone

        public ImageResource clone()
        Returns a copy of this object.
        Overrides:
        clone in class Object
        Returns:
        a copy