org.kuali.rice.krad.datadictionary.mask
Class MaskFormatterSubString

java.lang.Object
  extended by 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:
Serialized Form

Field Summary
protected  String maskCharacter
           
protected  int maskLength
           
 
Constructor Summary
MaskFormatterSubString()
           
 
Method Summary
 String getMaskCharacter()
          Gets the maskCharacter attribute.
 int getMaskLength()
          Gets the maskLength attribute.
 String maskValue(Object value)
          Takes in the real data value and returns a masked string.
 void setMaskCharacter(String maskCharacter)
          Specify the character with which to mask the original value.
 void setMaskLength(int maskLength)
          Set the number of characters to mask at the beginning of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maskCharacter

protected String maskCharacter

maskLength

protected int maskLength
Constructor Detail

MaskFormatterSubString

public MaskFormatterSubString()
Method Detail

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.


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.