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()
AdminModule
getName
in interface AdminModule
public String getId()
AdminModule
getId
in interface AdminModule
public URI getJSLocation()
AdminModule
getJSLocation
in interface AdminModule
public URI getCSSLocation()
AdminModule
getCSSLocation
in interface AdminModule
public URI getIframeLocation()
AdminModule
getIframeLocation
in interface AdminModule
public int compareTo(Object o)
AdminModule
. The are alphabetically sorted by module name.compareTo
in interface Comparable
o
- 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.