Class PermissiveExcept
Object
org.anchoranalysis.bean.AnchorBean<OutputEnabledRules>
org.anchoranalysis.io.output.bean.rules.OutputEnabledRules
org.anchoranalysis.io.output.bean.rules.OutputEnableRulesSpecify
org.anchoranalysis.io.output.bean.rules.PermissiveExcept
public class PermissiveExcept extends OutputEnableRulesSpecify
All outputs are enabled except particular ones.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description PermissiveExcept()PermissiveExcept(org.anchoranalysis.bean.primitive.StringSet first)Create with first-level output names -
Method Summary
Modifier and Type Method Description MultiLevelOutputEnabledcreate(Optional<MultiLevelOutputEnabled> defaultRules)Creates rules for determining whether an output is enabled or disabled.protected SingleLevelOutputEnabledcreateSecondLevelFromSet(org.anchoranalysis.bean.primitive.StringSet outputNames)Creates a new second-levelSingleLevelOutputEnabledfrom the relevant set of strings.Methods inherited from class org.anchoranalysis.io.output.bean.rules.OutputEnableRulesSpecify
firstLevelContains, getFirst, getSecond, isFirstDefined, secondLevelOutputs, setFirst, setSecond
-
Constructor Details
-
PermissiveExcept
public PermissiveExcept(org.anchoranalysis.bean.primitive.StringSet first)Create with first-level output names- Parameters:
first- first-level output-names
-
PermissiveExcept
public PermissiveExcept()
-
-
Method Details
-
create
Description copied from class:OutputEnabledRulesCreates rules for determining whether an output is enabled or disabled.- Specified by:
createin classOutputEnabledRules- Parameters:
defaultRules- default output-enabled rules that may exist.- Returns:
- rules for determining whether particular outputs are enabled.
-
createSecondLevelFromSet
protected SingleLevelOutputEnabled createSecondLevelFromSet(org.anchoranalysis.bean.primitive.StringSet outputNames)Description copied from class:OutputEnableRulesSpecifyCreates a new second-levelSingleLevelOutputEnabledfrom the relevant set of strings.- Specified by:
createSecondLevelFromSetin classOutputEnableRulesSpecify- Parameters:
outputNames- a set of output-names that are used to create theSingleLevelOutputEnabled.- Returns:
- the newly created
SingleLevelOutputEnabled.
-