Class CellConfig


  • public abstract class CellConfig
    extends Object
    Hierarcical configuration of cell/section/key/value quadruples.

    This class only implements the simple construction/storage/retrieval of these values. Other classes like Config implements accessors that interpret the values as other types.

    • Field Detail

      • EMPTY_INSTANCE

        public static final CellConfig EMPTY_INSTANCE
    • Constructor Detail

      • CellConfig

        public CellConfig()
    • Method Detail

      • getValues

        public abstract com.google.common.collect.ImmutableMap<CellName,​RawConfig> getValues()
      • getForCell

        public RawConfig getForCell​(CellName cellName)
        Retrieve the Cell-view of the raw config.
        Returns:
        The contents of the raw config with the cell-view filter
      • getOverridesByPath

        public com.google.common.collect.ImmutableMap<AbsPath,​RawConfig> getOverridesByPath​(com.google.common.collect.ImmutableMap<CellName,​AbsPath> pathMapping)
                                                                                           throws InvalidCellOverrideException
        Translates the 'cell name'->override map into a 'Path'->override map.
        Parameters:
        pathMapping - a map containing paths to all of the cells we want to query.
        Returns:
        'Path'->override map
        Throws:
        InvalidCellOverrideException