public abstract class Decorator extends Object implements AdminModule, Comparable
AdminModule interface and adds useful methods such as comparison
and conversion to maps.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Define an ordering for
AdminModule. |
URI |
getCSSLocation()
Absolute path to any CSS that accompanies this module.
|
String |
getId()
Returns the id that will be injected into the DOM.
|
URI |
getIframeLocation()
Absolute path to an IFrame to embed.
|
URI |
getJSLocation()
Absolute path to the module JS file.
|
String |
getName()
Returns the name of the module.
|
Map<String,Object> |
toMap()
Serialize a
AdminModule as a Map. |
public String getName()
AdminModulegetName in interface AdminModulepublic String getId()
AdminModulegetId in interface AdminModulepublic URI getJSLocation()
AdminModulegetJSLocation in interface AdminModulepublic URI getCSSLocation()
AdminModulegetCSSLocation in interface AdminModulepublic URI getIframeLocation()
AdminModulegetIframeLocation in interface AdminModulepublic int compareTo(Object o)
AdminModule. The are alphabetically sorted by module name.compareTo in interface Comparableo - public Map<String,Object> toMap()
AdminModule as a Map. NOTE: any null URIs get returned as empty
strings.This work is licensed under a Creative Commons Attribution 4.0 International License.