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 * @since 1.0.0 25 */ 26 public interface FormatPattern { 27 28 /** 29 * 日付フォーマットパターンを取得します。 30 * 31 * @return 日付フォーマットパターン 32 */ 33 String getDatePattern(); 34 35 /** 36 * 時刻フォーマットパターンを取得します。 37 * 38 * @return 時刻フォーマットパターン 39 */ 40 String getTimePattern(); 41 42 /** 43 * 日付時刻フォーマットパターンを取得します。 44 * 45 * @return 日付時刻パターン 46 */ 47 String getTimestampPattern(); 48 49 /** 50 * 日付フォーマットを取得します。 51 * 52 * @return 日付フォーマット 53 */ 54 DateFormat getDateFormat(); 55 56 /** 57 * 時刻フォーマットを取得します。 58 * 59 * @return 時刻フォーマット 60 */ 61 DateFormat getTimeFormat(); 62 63 /** 64 * 日付時刻フォーマットを取得します。 65 * 66 * @return 日付時刻フォーマット 67 */ 68 DateFormat getTimestampFormat(); 69 70 }