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:
nameshortName(short_namein 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 WebAppManifestcopy()Creates and returns a copy of this object.ImageResource[]getIcons()Returns the icons of the web app.StringgetName()Returns the name of the web app.StringgetShortName()Returns the short name of the web app.voidsetIcons(ImageResource[] value)Sets the icons of the web app.voidsetName(String value)Sets the name of the web app.voidsetShortName(String value)Sets the short name of the web app.javax.json.JsonObjecttoJsonObject()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
nullif 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
nullif 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
nullif 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
-
-