Class SourceContainer


  • @StableMinor(version="16.1",
                 sinceVersion="4.0")
    public class SourceContainer
    extends java.lang.Object
    Class responsible for hold and initialize doui sources
    Since:
    4.0.0
    Version:
    $Revision: 26157 $ $Date: 2024-01-13 11:35:03 -0300 (Sat, 13 Jan 2024) $
    • Field Detail

      • sourcesById

        protected final java.util.Map<java.lang.String,​Source> sourcesById
      • sourcesIdArray

        protected final java.util.ArrayList<java.lang.String> sourcesIdArray
      • defaultSource

        protected Source defaultSource
      • sourceDefinitionNodes

        protected org.w3c.dom.Node[] sourceDefinitionNodes
    • Constructor Detail

      • SourceContainer

        public SourceContainer​(org.w3c.dom.Node[] sourceDefinitionNodes)
        Constructor that receives xml definition nodes of sources
        Since:
        4.0.6
      • SourceContainer

        public SourceContainer​(DouiContext douiContext)
        Constructor that receives a DouiContext object
        Since:
        4.0.0
    • Method Detail

      • getSourceById

        public <S extends Source> S getSourceById​(java.lang.String id)
      • getDefaultSource

        public <S extends Source> S getDefaultSource()
      • getSourcesMap

        public java.util.Map<java.lang.String,​Source> getSourcesMap()
        Returns the map with the sources in this source container. The key of the map is the id of the source, and the value is the source instance.
        Returns:
        the map with the sources in this source container.