Coverage Report - org.kuali.rice.kim.api.util.KualiDateMask
 
Classes in this File Line Coverage Branch Coverage Complexity
KualiDateMask
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.api.util;
 17  
 
 18  
 
 19  
 import java.util.Date;
 20  
 import org.kuali.rice.kim.util.KimConstants;
 21  
 
 22  
 /**
 23  
  * This class is for masking java.util.Date using Kuali mask. 
 24  
  * 
 25  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 26  
  *
 27  
  */
 28  
 public class KualiDateMask extends Date{
 29  
 
 30  
         private static final long serialVersionUID = 1L;
 31  
         
 32  
         private String mask;
 33  
         
 34  0
         private KualiDateMask(String s){
 35  
                 
 36  0
                 mask = s;
 37  0
         }
 38  
 
 39  
         public static KualiDateMask getInstance(){
 40  
                 
 41  0
                 return new KualiDateMask(KimConstants.RESTRICTED_DATA_MASK);
 42  
         }
 43  
         
 44  
         public String toString(){
 45  
                 
 46  0
                 return this.mask;
 47  
         }
 48  
         
 49  
         public static void main(String[] args){
 50  0
                 System.out.println("masked date\t" + KualiDateMask.getInstance());
 51  0
         }
 52  
 
 53  
 }