Package org.vx68k.webapp.manifest
Class WebAppManifest
- java.lang.Object
-
- org.vx68k.webapp.manifest.WebAppManifest
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class WebAppManifest extends Object implements Cloneable, Serializable
Web app manifest.This implementation in not complete, and has only the following properties:
name
shortName
(short_name
in JSON)icons
- Since:
- 1.0
- Author:
- Kaz Nishimura
- See Also:
- "Web App Manifest", Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebAppManifest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebAppManifest
copy()
Creates and returns a copy of this object.ImageResource[]
getIcons()
Returns the icons of the web app.String
getName()
Returns the name of the web app.String
getShortName()
Returns the short name of the web app.void
setIcons(ImageResource[] value)
Sets the icons of the web app.void
setName(String value)
Sets the name of the web app.void
setShortName(String value)
Sets the short name of the web app.javax.json.JsonObject
toJsonObject()
Returns a JSON object that represents this manifest.
-
-
-
Method Detail
-
getName
public final String getName()
Returns the name of the web app.- Returns:
- the name, or
null
if not specified
-
setName
public final void setName(String value)
Sets the name of the web app.- Parameters:
value
- the new name
-
getShortName
public final String getShortName()
Returns the short name of the web app.- Returns:
- the short name, or
null
if not specified
-
setShortName
public final void setShortName(String value)
Sets the short name of the web app.- Parameters:
value
- the new short name
-
getIcons
public final ImageResource[] getIcons()
Returns the icons of the web app.- Returns:
- the icons, or
null
if not specified
-
setIcons
public final void setIcons(ImageResource[] value)
Sets the icons of the web app.Each element must not be
null
.- Parameters:
value
- the new icons
-
toJsonObject
public final javax.json.JsonObject toJsonObject()
Returns a JSON object that represents this manifest.- Returns:
- a JSON object
-
copy
public WebAppManifest copy()
Creates and returns a copy of this object.- Returns:
- a copy of this object
-
-