Package com.adobe.granite.contexthub.api
Class Module
- java.lang.Object
-
- com.adobe.granite.contexthub.api.Module
-
public class Module extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getCategories()Get the clientlib categories that should be included for this module.java.lang.StringgetName()Get the name of this module.java.lang.StringgetPath()Get the path where this module is defined.ValueMapgetProperties()Get all properties of this module.ResourcegetResource()Get the resource which describes this module.java.lang.StringgetResourceType()Get the resourceType of this module.java.util.Set<java.lang.String>getRunModes()Returns list of run modes in which module should be available.java.lang.StringgetTheme()Get the theme this module uses.booleanisEnabled()Whether this module should be enabled or not.
-
-
-
Constructor Detail
-
Module
public Module(Resource resource)
Constructs a module with properties from the given resource.- Parameters:
resource- the resource used to construct a module from
-
-
Method Detail
-
getRunModes
public java.util.Set<java.lang.String> getRunModes()
Returns list of run modes in which module 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
-
getTheme
public java.lang.String getTheme()
Get the theme this module uses.- Returns:
- the theme
-
getName
public java.lang.String getName()
Get the name of this module.- Returns:
- the name
-
getResourceType
public java.lang.String getResourceType()
Get the resourceType of this module.- Returns:
- the resourceType
-
getProperties
public ValueMap getProperties()
Get all properties of this module.- Returns:
- the properties
-
getResource
public Resource getResource()
Get the resource which describes this module.- Returns:
- the resource
-
getPath
public java.lang.String getPath()
Get the path where this module is defined.- Returns:
- the path
-
getCategories
public java.util.List<java.lang.String> getCategories()
Get the clientlib categories that should be included for this module.- Returns:
- the clientlib categories
-
-