Coverage Report - org.seasar.cubby.validator.ValidationContext
 
Classes in this File Line Coverage Branch Coverage Complexity
ValidationContext
100%
8/8
N/A
0
 
 1  
 package org.seasar.cubby.validator;
 2  
 
 3  
 import java.util.Map;
 4  
 
 5  
 import org.seasar.cubby.action.FormatPattern;
 6  
 
 7  
 /**
 8  
  * 入力å?¤ã®ã‚³ãƒ³ãƒ?キストオブジェクãƒ?
 9  
  * @author agata
 10  
  */
 11  
 public class ValidationContext {
 12  
 
 13  
         /**
 14  
          * パラメータå?
 15  
          */
 16  
         private final String name;
 17  
 
 18  
         /**
 19  
          * 入力å?¤
 20  
          */
 21  
         private final Object value;
 22  
 
 23  
         /**
 24  
          * 入力パラメータã®ä¸?覧
 25  
          */
 26  
         private final Map<String, Object> params;
 27  
 
 28  
         /**
 29  
          * 日付フォーマットパターン
 30  
          */
 31  
         private final FormatPattern formatPattern;
 32  
 
 33  
         /**
 34  
          * コンストラクタ
 35  
          * @param name パラメータå?
 36  
          * @param value 入力å?¤
 37  
          * @param params 入力パラメータã®ä¸?覧
 38  
          * @param formatPattern 日付フォーマットパターン
 39  
          */
 40  
         public ValidationContext(final String name, final Object value,
 41  54
                         final Map<String, Object> params, final FormatPattern formatPattern) {
 42  54
                 this.name = name;
 43  54
                 this.value = value;
 44  54
                 this.params = params;
 45  54
                 this.formatPattern = formatPattern;
 46  54
         }
 47  
 
 48  
         /**
 49  
          * パラメータåã‚’å–å¾—ã—ã¾ã™ã??
 50  
          * @return パラメータå?
 51  
          */
 52  
         public String getName() {
 53  26
                 return name;
 54  
         }
 55  
 
 56  
         /**
 57  
          * 入力å?¤ã‚’å–å¾—ã—ã¾ã™ã??
 58  
          * @return 入力å?¤
 59  
          */
 60  
         public Object getValue() {
 61  61
                 return value;
 62  
         }
 63  
 
 64  
         /**
 65  
          * 入力パラメータã®ä¸?覧をå–å¾—ã—ã¾ã™ã??
 66  
          * @returnã€?入力パラメータã®ä¸?覧
 67  
          */
 68  
         public Map<String, Object> getParams() {
 69  
                 return params;
 70  
         }
 71  
 
 72  
         /**
 73  
          * 日付フォーマットパターンをå–å¾—ã—ã¾ã™ã??
 74  
          * @return 日付フォーマットパターン
 75  
          */
 76  
         public FormatPattern getFormatPattern() {
 77  
                 return formatPattern;
 78  
         }
 79  
 
 80  
 }