Class OutputEnableRulesSpecify
- Direct Known Subclasses:
AddToDefaults
,IgnoreUnderscorePrefixUnless
,NoneExcept
,PermissiveExcept
Base class for an
OutputEnabledRules
that specifies particular output-names for first and
second levels.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
Create with a specific set of first-level output names. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SingleLevelOutputEnabled
createSecondLevelFromSet
(StringSet outputNames) Creates a new second-levelSingleLevelOutputEnabled
from the relevant set of strings.protected boolean
firstLevelContains
(String outputName) Whether the first-level names contain a particular output (if defined)?getFirst()
Output-names in the first-level.Output-names in the second-level (for all first level output-names).protected boolean
Are output-names in the first-level defined?protected SingleLevelOutputEnabled
secondLevelOutputs
(String outputName, OutputEnabled defaultValue) Retrieves a second-levelSingleLevelOutputEnabled
corresponding to a first-level output-name.void
Output-names in the first-level.void
Output-names in the second-level (for all first level output-names).Methods inherited from class org.anchoranalysis.io.output.bean.rules.OutputEnabledRules
create
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
OutputEnableRulesSpecify
Create with a specific set of first-level output names.- Parameters:
first
- first-level output-names
-
OutputEnableRulesSpecify
protected OutputEnableRulesSpecify()
-
-
Method Details
-
firstLevelContains
Whether the first-level names contain a particular output (if defined)?- Parameters:
outputName
- the output-name to query.- Returns:
- true iff the first-level names are defined and
outputName
is contained.
-
createSecondLevelFromSet
Creates a new second-levelSingleLevelOutputEnabled
from the relevant set of strings.- Parameters:
outputNames
- a set of output-names that are used to create theSingleLevelOutputEnabled
.- Returns:
- the newly created
SingleLevelOutputEnabled
.
-
secondLevelOutputs
protected SingleLevelOutputEnabled secondLevelOutputs(String outputName, OutputEnabled defaultValue) Retrieves a second-levelSingleLevelOutputEnabled
corresponding to a first-level output-name.- Parameters:
outputName
- the name of the first-level output.defaultValue
- the default-value used if no existing second-level entry exists.- Returns:
- an existing corresponding
SingleLevelOutputEnabled
or otherwise a newly created one.
-
isFirstDefined
protected boolean isFirstDefined()Are output-names in the first-level defined?- Returns:
- true iff they are defined.
-
getFirst
Output-names in the first-level. -
setFirst
Output-names in the first-level. -
getSecond
Output-names in the second-level (for all first level output-names).If the list is empty, all second-level outputs are considered permissive.
-
setSecond
Output-names in the second-level (for all first level output-names).If the list is empty, all second-level outputs are considered permissive.
-