Class TransportLayersImpl<T extends TransportLayer>

    • Constructor Detail

      • TransportLayersImpl

        public TransportLayersImpl​(IdGroupingToken idToken)
        Constructor
        Parameters:
        idToken - to generated id's for infrastructure layers
      • TransportLayersImpl

        public TransportLayersImpl​(TransportLayersImpl<T> other)
        Constructor
        Parameters:
        other - to copy
    • Method Detail

      • getIdToken

        protected IdGroupingToken getIdToken()
        Collect the token for id generation
        Returns:
        id token
      • get

        public 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
        Specified by:
        get in interface TransportLayers<T extends TransportLayer>
        Parameters:
        mode - to find the layer for
        Returns:
        first matching layer
      • getByXmlId

        public T getByXmlId​(String xmlId)
        Find the layer based on non-indexed XML id rather than the managed internal id.
        Specified by:
        getByXmlId in interface TransportLayers<T extends TransportLayer>
        Parameters:
        xmlId - to find the layer for
        Returns:
        first matching layer