Class SpecificEnabled

All Implemented Interfaces:
SingleLevelOutputEnabled

public class SpecificEnabled extends OutputEnabled
Only specific outputs, identified by a textual name, are enabled.
Author:
Owen Feehan
  • Constructor Details

    • SpecificEnabled

      public SpecificEnabled(String output)
      Create with a single output-enabled.
      Parameters:
      output - the output to enable.
    • SpecificEnabled

      public SpecificEnabled()
    • SpecificEnabled

      public SpecificEnabled(StringSet outputsEnabled)
      Creates a new SpecificEnabled instance.
      Parameters:
      outputsEnabled - The names of the outputs that are enabled.
  • Method Details

    • isOutputEnabled

      public boolean isOutputEnabled(String outputName)
      Description copied from interface: SingleLevelOutputEnabled
      Is a particular a particular output-enabled?
      Parameters:
      outputName - the name of the output
      Returns:
      true iff the output is allowed
    • getOutputsEnabled

      public StringSet getOutputsEnabled()
      The names of the outputs that are enabled.
    • setOutputsEnabled

      public void setOutputsEnabled(StringSet outputsEnabled)
      The names of the outputs that are enabled.