Class IgnoreUnderscorePrefix

Object
AnchorBean<OutputEnabled>
OutputEnabled
IgnoreUnderscorePrefix
All Implemented Interfaces:
SingleLevelOutputEnabled

public class IgnoreUnderscorePrefix extends OutputEnabled
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 Details

    • INSTANCE

      public static final OutputEnabled INSTANCE
      A singleton instance of IgnoreUnderscorePrefix.

      The class retains a public constructor so it can also be instantiated as a bean.

  • Constructor Details

    • IgnoreUnderscorePrefix

      public IgnoreUnderscorePrefix()
  • 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