Package com.adobe.granite.contexthub.api
Class Mode
java.lang.Object
com.adobe.granite.contexthub.api.Mode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the clientlib categories that should be included for this module.getName()Get the name of this module.getPath()Get the path where this module is defined.Get all properties of this module.Get the resource which describes this module.Get the resourceType of this module.Returns list of run modes in which mode should be available.booleanWhether this module should be enabled or not.
-
Constructor Details
-
Mode
Constructs a module with properties from the given resource.- Parameters:
resource- resource
-
-
Method Details
-
getRunModes
Returns list of run modes in which mode should be available.- Returns:
- list of run modes
-
isEnabled
public boolean isEnabled()Whether this module should be enabled or not.- Returns:
trueif this module should be enabled
-
getName
Get the name of this module.- Returns:
- name
-
getResourceType
Get the resourceType of this module.- Returns:
- resourceType
-
getProperties
Get all properties of this module.- Returns:
- properties
-
getResource
Get the resource which describes this module.- Returns:
- resource
-
getPath
Get the path where this module is defined.- Returns:
- path
-
getCategories
Get the clientlib categories that should be included for this module.- Returns:
- clientlib categories
-