Package org.vx68k.webapp.manifest
Class ImageResource
- java.lang.Object
-
- org.vx68k.webapp.manifest.ImageResource
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ImageResource extends Object implements Cloneable, Serializable
Image resource in a web app manifest.This implementation is not complete, and has only the following properties:
src
sizes
type
- Since:
- 1.0
- Author:
- Kaz Nishimura
- See Also:
- "Web App Manifest", Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageResource
clone()
Returns a copy of this object.String
getSizes()
Returns the sizes of the image resource.String
getSrc()
Returns the URL (src
) of the image resource.String
getType()
Returns the media type of the image resource.void
setSizes(String value)
Sets the sizes of the image resource.void
setSrc(String value)
Sets the URL (src
) of the image resource.void
setType(String value)
Sets the media type of the image resource.javax.json.JsonObject
toJsonObject()
Returns a JSON object that represents this image resource.
-
-
-
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.
-
-