Class MaskFormatterSubString

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

public class MaskFormatterSubString extends Object implements MaskFormatter
The maskTo element is to used hide the beginning part of the value for unauthorized users. The number of leading characters to hide and the replacement character can be specified.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • maskCharacter

      protected String maskCharacter
    • maskLength

      protected int maskLength
  • Constructor Details

    • MaskFormatterSubString

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

      public String getMaskCharacter()
      Gets the maskCharacter attribute.
      Returns:
      Returns the maskCharacter.
    • setMaskCharacter

      public void setMaskCharacter(String maskCharacter)
      Specify the character with which to mask the original value.
      Parameters:
      maskCharacter - for masking values
    • getMaskLength

      public int getMaskLength()
      Gets the maskLength attribute.
      Returns:
      Returns the maskLength.
    • setMaskLength

      public void setMaskLength(int maskLength)
      Set the number of characters to mask at the beginning of the string.
      Parameters:
      maskLength - The maskLength to set.