Class IgnoreUnderscorePrefix
- All Implemented Interfaces:
SingleLevelOutputEnabled
All outputs are allowed unless the name's first character is an underscore.
Additionally, when a underscore occurs in any location, preceded by a period i.e. ._
this output is also allowed. This is intended for cases of namespace-like hierarchy of outputs.
This is intended as a filter to allow declaration of certain private entities that are not typically outputted, unless explicitly specified.
- Author:
- Owen Feehan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OutputEnabled
A singleton instance ofIgnoreUnderscorePrefix
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isOutputEnabled
(String outputName) Is a particular a particular output-enabled?Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Field Details
-
INSTANCE
A singleton instance ofIgnoreUnderscorePrefix
.The class retains a public constructor so it can also be instantiated as a bean.
-
-
Constructor Details
-
IgnoreUnderscorePrefix
public IgnoreUnderscorePrefix()
-
-
Method Details
-
isOutputEnabled
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
-