Class IgnoreUnderscorePrefixUnless
Object
AnchorBean<OutputEnabledRules>
OutputEnabledRules
OutputEnableRulesSpecify
IgnoreUnderscorePrefixUnless
Like
IgnoreUnderscorePrefix
for all first and level-outputs unless a particular outputs
are explicitly specified.
If first-level are specified, this takes precedence, and only these outputs are allowed.
Similarly if any particular second-level outputs are specified, these replace IgnoreUnderscorePrefix
.
Otherwise IgnoreUnderscorePrefix
is used.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreate with first-level output names -
Method Summary
Modifier and TypeMethodDescriptioncreate
(Optional<MultiLevelOutputEnabled> defaultRules) Creates rules for determining whether an output is enabled or disabled.protected SingleLevelOutputEnabled
createSecondLevelFromSet
(StringSet outputNames) Creates a new second-levelSingleLevelOutputEnabled
from the relevant set of strings.Methods inherited from class org.anchoranalysis.io.output.bean.rules.OutputEnableRulesSpecify
firstLevelContains, getFirst, getSecond, isFirstDefined, secondLevelOutputs, setFirst, setSecond
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
IgnoreUnderscorePrefixUnless
Create with first-level output names- Parameters:
first
- first-level output-names
-
IgnoreUnderscorePrefixUnless
public IgnoreUnderscorePrefixUnless()
-
-
Method Details
-
create
Description copied from class:OutputEnabledRules
Creates rules for determining whether an output is enabled or disabled.- Specified by:
create
in classOutputEnabledRules
- Parameters:
defaultRules
- default output-enabled rules that may exist.- Returns:
- rules for determining whether particular outputs are enabled.
-
createSecondLevelFromSet
Description copied from class:OutputEnableRulesSpecify
Creates a new second-levelSingleLevelOutputEnabled
from the relevant set of strings.- Specified by:
createSecondLevelFromSet
in classOutputEnableRulesSpecify
- Parameters:
outputNames
- a set of output-names that are used to create theSingleLevelOutputEnabled
.- Returns:
- the newly created
SingleLevelOutputEnabled
.
-