Class ModesImpl

    • Constructor Detail

      • ModesImpl

        public ModesImpl​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - to use for creating ids for instances
      • ModesImpl

        public ModesImpl​(ModeFactory modeFactory)
        Constructor
        Parameters:
        modeFactory - factory to use
      • ModesImpl

        public ModesImpl​(ModesImpl modesImpl)
        Copy Constructor
        Parameters:
        modesImpl - to copy
    • Method Detail

      • containsPredefinedMode

        public boolean containsPredefinedMode​(PredefinedModeType modeType)
        verify if predefined mode is registered
        Specified by:
        containsPredefinedMode in interface Modes
        Parameters:
        modeType - to verify
        Returns:
        true when available, false otherwise
      • get

        public PredefinedMode get​(PredefinedModeType modeType)
        get predefined mode if it is registered
        Specified by:
        get in interface Modes
        Parameters:
        modeType - to collect
        Returns:
        predefined mode when available, null otherwise
      • getByXmlId

        public Mode getByXmlId​(String xmlId)
        Retrieve a Mode by its XML Id
        Specified by:
        getByXmlId in interface Modes
        Parameters:
        xmlId - the XML Id of the specified mode
        Returns:
        the retrieved mode, or null if no mode was found