Class SourceContainer


  • @StableMinor(version="17.0",
                 sinceVersion="4.0")
    public class SourceContainer
    extends java.lang.Object
    Class responsible for hold and initialize doui sources
    Since:
    4.0.0
    Version:
    $Revision$ $Date$
    • 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.