001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.hayabusa.resource;
017    
018    import java.util.Calendar;
019    
020    /**
021     * 事業æ‰?CDJGS) 毎ã?休日カレンãƒ?ƒ‡ータオブジェクトですã?
022     *
023     * カレンãƒ?ƒ‡ータは、指定ã?事業æ‰?�«関して、すべての休日æƒ??を持ってã�?�¾すã?
024     * å…??カレンãƒ?ƒ†ーブル(GE13)の ?‘日(DY1)?ž31日(DY31)までの日付けæ¬?�«対してã€?
025     * 休日日付けの 年月日 に対する、休日かどã�?�‹を判断できるã�?�‘のæƒ??を保持しますã?
026     * 具体的には、年月日に対する Set を持つことになりますã?
027     *
028     * @og.rev 3.6.0.0 (2004/09/17) 新規作æ?
029     * @og.group リソース管ç�?
030     *
031     * @version  4.0
032     * @author   Kazuhiko Hasegawa
033     * @since    JDK5.0,
034     */
035    public final class CalendarPGData_SUNDAY extends AbstractCalendarPGData {
036    
037            /**
038             * æŒ?®šã?日付けがã?休日かどã�?�‹を返しますã?
039             * ここでは、日曜日かどã�?�‹の判定結果を返してã�?�¾すã?
040             *
041             * @param       day     æŒ?®šã?日付け
042             *
043             * @return      休日?štrue それ以外:false
044             *
045             */
046            public boolean isHoliday( final Calendar day ) {
047                    return day.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY ;
048            }
049    }