Interface Modes

    • Method Detail

      • get

        PredefinedMode get​(PredefinedModeType modeType)
        get predefined mode if it is registered
        Parameters:
        modeType - to collect
        Returns:
        predefined mode when available, null otherwise
      • containsPredefinedMode

        boolean containsPredefinedMode​(PredefinedModeType modeType)
        verify if predefined mode is registered
        Parameters:
        modeType - to verify
        Returns:
        true when available, false otherwise
      • getByXmlId

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

        Modes deepCloneWithMapping​(BiConsumer<Mode,​Mode> mapper)
        Deep clone implementation where the mapping for its internal copies is captured by the provided mapper
        Specified by:
        deepCloneWithMapping in interface ManagedIdEntities<Mode>
        Parameters:
        mapper - to apply to each mapping between original and copy
        Returns:
        copy
      • getFactory

        ModeFactory getFactory()
        Collect the mode factory to use for creating instances
        Specified by:
        getFactory in interface ManagedIdEntities<Mode>
        Returns:
        modeFactory to create modes for this container