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)?žï¼“1日(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 }