AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry| Modifier and Type | Field and Description |
|---|---|
static String |
DESCHTML_KEY
Key for description of the application in HTML.
|
static String |
DESCTEXT_KEY
Key for short description of the application in plain text.
|
static String |
DOCURL_KEY
Key for the URL of a documentation web page.
|
static String |
ICONURL_KEY
Key for the URL of an icon in png, gif or jpeg format.
|
static String |
NAME_KEY
Key for application name.
|
| Constructor and Description |
|---|
Metadata()
Constructs an empty Metadata map.
|
Metadata(Map map)
Constructs a Metadata map based on a given map.
|
| Modifier and Type | Method and Description |
|---|---|
static Metadata |
asMetadata(Map map)
Returns a given map as a Metadata object.
|
void |
check()
Checks that this object is ready for use with the SAMP toolkit.
|
String |
getDescriptionHtml()
Returns an HTML description of the application.
|
String |
getDescriptionText()
Returns a short description of the application.
|
URL |
getDocumentationUrl()
Returns a URL for a documentation web page.
|
URL |
getIconUrl()
Returns a URL for a gif, png or jpeg icon identifying the application.
|
String |
getName()
Returns the value for the application's name.
|
void |
setDescriptionHtml(String html)
Sets an HTML description of the application.
|
void |
setDescriptionText(String txt)
Sets a short description of the application.
|
void |
setDocumentationUrl(String url)
Sets a URL for a documentation web page.
|
void |
setIconUrl(String url)
Sets a URL for a gif, png or jpeg icon identifying the application.
|
void |
setName(String name)
Sets the value for the application's name.
|
checkHasKeys, entrySet, getList, getMap, getString, getUrl, putclear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final String NAME_KEY
public static final String DESCTEXT_KEY
public static final String DESCHTML_KEY
public static final String ICONURL_KEY
public static final String DOCURL_KEY
public Metadata()
public Metadata(Map map)
map - map containing initial values for this objectpublic void setName(String name)
name - value for NAME_KEY keypublic String getName()
NAME_KEY keypublic void setDescriptionText(String txt)
txt - value for DESCTEXT_KEY keypublic String getDescriptionText()
DESCTEXT_KEY keypublic void setDescriptionHtml(String html)
html - value for DESCHTML_KEY keypublic String getDescriptionHtml()
DESCHTML_KEY keypublic void setIconUrl(String url)
url - value for ICONURL_KEY keypublic URL getIconUrl()
ICONURL_KEY keypublic void setDocumentationUrl(String url)
url - value for DOCURL_KEY keypublic URL getDocumentationUrl()
DOCURL_KEY keypublic void check()
SampMapSampUtils.checkMap(java.util.Map) (ensuring that all keys
are Strings, and all values Strings, Lists or Maps), subclass-specific
invariants may be checked. In the case that there's something wrong,
an informative DataException will be thrown.Copyright © 2008–2024. All rights reserved.