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:
srcsizestype
- 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 ImageResourceclone()Returns a copy of this object.StringgetSizes()Returns the sizes of the image resource.StringgetSrc()Returns the URL (src) of the image resource.StringgetType()Returns the media type of the image resource.voidsetSizes(String value)Sets the sizes of the image resource.voidsetSrc(String value)Sets the URL (src) of the image resource.voidsetType(String value)Sets the media type of the image resource.javax.json.JsonObjecttoJsonObject()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
nullif 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
nullif 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
nullif 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.
-
-