Class MaskFormatterLiteral

java.lang.Object
org.kuali.rice.krad.datadictionary.mask.MaskFormatterLiteral
All Implemented Interfaces:
Serializable, MaskFormatter

public class MaskFormatterLiteral extends Object implements MaskFormatter
The maskLiteral element is used to completely hide the field value for unauthorized users. The specified literal will be shown instead of the field value.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • literal

      protected String literal
  • Constructor Details

    • MaskFormatterLiteral

      public MaskFormatterLiteral()
  • Method Details

    • maskValue

      public String maskValue(Object value)
      Description copied from interface: MaskFormatter
      Takes in the real data value and returns a masked string.
      Specified by:
      maskValue in interface MaskFormatter
      Parameters:
      value - - data value
      Returns:
      String - masked value
    • getLiteral

      public String getLiteral()
      Gets the literalString attribute.
      Returns:
      Returns the literal String.
    • setLiteral

      public void setLiteral(String literal)
      Specify the string that will be shown instead of the actual value when masked.
    • toString

      public String toString()
      Overrides:
      toString in class Object