Interface TransportLayers<T extends TransportLayer>

    • Method Detail

      • get

        T get​(Mode mode)
        Find the layer that supports the passed in mode. Since a mode is only allowed to be supported by a single layer, this should yield the correct result. If multiple layers support the same mode for some reason, this method returns the first layer that supports the mode
        Parameters:
        mode - to find the layer for
        Returns:
        first matching layer
      • getByXmlId

        T getByXmlId​(String xmlId)
        Find the layer based on non-indexed XML id rather than the managed internal id.
        Parameters:
        xmlId - to find the layer for
        Returns:
        first matching layer
      • isNoLayers

        default boolean isNoLayers()
        When there are no layers the instance is considered empty
        Returns:
        true when no layers exist yet, false otherwise
      • isEachLayerEmpty

        default boolean isEachLayerEmpty()
        Check if each layer itself is empty
        Returns:
        true when all empty false otherwise
      • getLayersOfType

        default <U extends TransportLayerCollection<U> getLayersOfType()
        Allows you to collect all registered layers of a specific derived transport layer type
        Type Parameters:
        U - derived type of type T
        Returns:
        list of layers of desired type, empty list when none exist