Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ConversionFailure |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2004-2009 the Seasar Foundation and the Others. | |
3 | * | |
4 | * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 | |
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, | |
13 | * either express or implied. See the License for the specific language | |
14 | * governing permissions and limitations under the License. | |
15 | */ | |
16 | package org.seasar.cubby.internal.controller; | |
17 | ||
18 | import org.seasar.cubby.action.FieldInfo; | |
19 | import org.seasar.cubby.action.MessageInfo; | |
20 | ||
21 | /** | |
22 | * 型変換の失敗を表すクラスです。 | |
23 | * | |
24 | * @author baba | |
25 | */ | |
26 | public class ConversionFailure { | |
27 | ||
28 | /** フィールド名。 */ | |
29 | private final String fieldName; | |
30 | ||
31 | /** メッセージ情報。 */ | |
32 | private final MessageInfo messageInfo; | |
33 | ||
34 | /** フィールド情報。 */ | |
35 | private final FieldInfo[] fieldInfos; | |
36 | ||
37 | /** | |
38 | * インスタンス化します。 | |
39 | * | |
40 | * @param fieldName | |
41 | * フィールド名 | |
42 | * @param messageInfo | |
43 | * メッセージ情報 | |
44 | * @param fieldInfos | |
45 | * フィールド情報 | |
46 | */ | |
47 | public ConversionFailure(final String fieldName, | |
48 | 38 | final MessageInfo messageInfo, final FieldInfo... fieldInfos) { |
49 | 38 | this.fieldName = fieldName; |
50 | 38 | this.messageInfo = messageInfo; |
51 | 38 | this.fieldInfos = fieldInfos; |
52 | 38 | } |
53 | ||
54 | /** | |
55 | * フィールド名を取得します。 | |
56 | * | |
57 | * @return フィールド名 | |
58 | */ | |
59 | public String getFieldName() { | |
60 | 38 | return fieldName; |
61 | } | |
62 | ||
63 | /** | |
64 | * メッセージ情報を取得します。 | |
65 | * | |
66 | * @return メッセージ情報 | |
67 | */ | |
68 | public MessageInfo getMessageInfo() { | |
69 | 38 | return messageInfo; |
70 | } | |
71 | ||
72 | /** | |
73 | * フィールド情報を取得します。 | |
74 | * | |
75 | * @return フィールド情報 | |
76 | */ | |
77 | public FieldInfo[] getFieldInfos() { | |
78 | 38 | return fieldInfos; |
79 | } | |
80 | ||
81 | } |