Class Mode


  • public class Mode
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Mode​(Resource resource)
      Constructs a module with properties from the given resource.
    • 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.String getName()
      Get the name of this module.
      java.lang.String getPath()
      Get the path where this module is defined.
      ValueMap getProperties()
      Get all properties of this module.
      Resource getResource()
      Get the resource which describes this module.
      java.lang.String getResourceType()
      Get the resourceType of this module.
      java.util.Set<java.lang.String> getRunModes()
      Returns list of run modes in which mode should be available.
      boolean isEnabled()
      Whether this module should be enabled or not.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mode

        public Mode​(Resource resource)
        Constructs a module with properties from the given resource.
        Parameters:
        resource - resource
    • Method Detail

      • getRunModes

        public java.util.Set<java.lang.String> 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:
        true if this module should be enabled
      • getName

        public java.lang.String getName()
        Get the name of this module.
        Returns:
        name
      • getResourceType

        public java.lang.String getResourceType()
        Get the resourceType of this module.
        Returns:
        resourceType
      • getProperties

        public ValueMap getProperties()
        Get all properties of this module.
        Returns:
        properties
      • getResource

        public Resource getResource()
        Get the resource which describes this module.
        Returns:
        resource
      • getPath

        public java.lang.String getPath()
        Get the path where this module is defined.
        Returns:
        path
      • getCategories

        public java.util.List<java.lang.String> getCategories()
        Get the clientlib categories that should be included for this module.
        Returns:
        clientlib categories