Interface PartialImport
-
public interface PartialImport
A partial import, i.e. an element which is importable, proposed to the end user.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getKey()
Gets the key.I18nizableText
getLabel()
Gets the labelstatic PartialImport
of(String key, I18nizableText label)
Builds a partial import.default Map<String,Object>
toJson()
Jsonify this partial import for client-side
-
-
-
Method Detail
-
getKey
String getKey()
Gets the key. Must be unique across the whole application (you should prefix it, for instance "plugins/my-plugin").- Returns:
- the key
-
getLabel
I18nizableText getLabel()
Gets the label- Returns:
- the label
-
toJson
default Map<String,Object> toJson()
Jsonify this partial import for client-side- Returns:
- the JSON representation of this partial import
-
of
static PartialImport of(String key, I18nizableText label)
Builds a partial import.- Parameters:
key
- the keylabel
- the label- Returns:
- a partial import
-
-