Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
FormatPattern |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2004-2008 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.action; | |
17 | ||
18 | import java.text.DateFormat; | |
19 | ||
20 | /** | |
21 | * 日付や時刻のフォーマットパターンを保持するクラスです。 | |
22 | * | |
23 | * @author baba | |
24 | */ | |
25 | public interface FormatPattern { | |
26 | ||
27 | /** | |
28 | * 日付フォーマットパターンを取得します。 | |
29 | * | |
30 | * @return 日付フォーマットパターン | |
31 | */ | |
32 | String getDatePattern(); | |
33 | ||
34 | /** | |
35 | * 時刻フォーマットパターンを取得します。 | |
36 | * | |
37 | * @return 時刻フォーマットパターン | |
38 | */ | |
39 | String getTimePattern(); | |
40 | ||
41 | /** | |
42 | * 日付時刻フォーマットパターンを取得します。 | |
43 | * | |
44 | * @return 日付時刻パターン | |
45 | */ | |
46 | String getTimestampPattern(); | |
47 | ||
48 | /** | |
49 | * 日付フォーマットを取得します。 | |
50 | * | |
51 | * @return 日付フォーマット | |
52 | */ | |
53 | DateFormat getDateFormat(); | |
54 | ||
55 | /** | |
56 | * 時刻フォーマットを取得します。 | |
57 | * | |
58 | * @return 時刻フォーマット | |
59 | */ | |
60 | DateFormat getTimeFormat(); | |
61 | ||
62 | /** | |
63 | * 日付時刻フォーマットを取得します。 | |
64 | * | |
65 | * @return 日付時刻フォーマット | |
66 | */ | |
67 | DateFormat getTimestampFormat(); | |
68 | ||
69 | } |