The extensions property names are always prefixed by "x-".
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the current instancethe key used to access the extension object. Always prefixed by "x-". name, Object data not required by the specification. null values will be rejected (implementation will throw an
exception) or ignored. value)Adds the given object to this Extensible's map of extensions, with the given name as its key. |
| public default T | Returns: the current instancemap containing keys which start with "x-" and values which provide additional information extensions)Sets this Extensible's extensions property to the given map of extensions. |
| public Map | Returns: a map containing keys which start with "x-" and values which provide additional informationReturns the extensions property from an Extensible instance. |
| public void | removeExtension(String
the key used to access the extension object. Always prefixed by "x-". name)Removes the given object to this Extensible's map of extensions, with the given name as its key. |
| public void | setExtensions(Map<String, Object>
map containing keys which start with "x-" and values which provide additional information extensions)Sets this Extensible's extensions property to the given map of extensions. |
| addExtension | back to summary |
|---|---|
| public T addExtension(String name, Object value) Adds the given object to this Extensible's map of extensions, with the given name as its key. | |
| extensions | back to summary |
|---|---|
| public default T extensions(Map<String, Object> extensions) Sets this Extensible's extensions property to the given map of extensions. | |
| getExtensions | back to summary |
|---|---|
| public Map Returns the extensions property from an Extensible instance. | |
| removeExtension | back to summary |
|---|---|
| public void removeExtension(String name) Removes the given object to this Extensible's map of extensions, with the given name as its key.
| |
| setExtensions | back to summary |
|---|---|
| public void setExtensions(Map<String, Object> extensions) Sets this Extensible's extensions property to the given map of extensions. | |