001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/util/tags/sakai_2-4-1/util-api/api/src/java/org/sakaiproject/time/api/TimeBreakdown.java $
003: * $Id: TimeBreakdown.java 6835 2006-03-21 21:06:44Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.time.api;
021:
022: /**
023: * <p>
024: * TimeBreakdown ...
025: * </p>
026: */
027: public interface TimeBreakdown {
028: /**
029: * Access the year value.
030: *
031: * @return The year value.
032: */
033: int getYear();
034:
035: /**
036: * Set the year value.
037: *
038: * @param year
039: * The year value.
040: */
041: void setYear(int year);
042:
043: /**
044: * Access the month value.
045: *
046: * @return The month value.
047: */
048: int getMonth();
049:
050: /**
051: * Set the month value.
052: *
053: * @param month
054: * The year value.
055: */
056: void setMonth(int month);
057:
058: /**
059: * Access the day value.
060: *
061: * @return The day value.
062: */
063: int getDay();
064:
065: /**
066: * Set the day value.
067: *
068: * @param day
069: * The year value.
070: */
071: void setDay(int day);
072:
073: /**
074: * Access the hour value.
075: *
076: * @return The hour value.
077: */
078: int getHour();
079:
080: /**
081: * Set the hour value.
082: *
083: * @param hour
084: * The year value.
085: */
086: void setHour(int hour);
087:
088: /**
089: * Access the minute value.
090: *
091: * @return The minute. value.
092: */
093: int getMin();
094:
095: /**
096: * Set the minute value.
097: *
098: * @param minute
099: * The year value.
100: */
101: void setMin(int minute);
102:
103: /**
104: * Access the second value.
105: *
106: * @return The second value.
107: */
108: int getSec();
109:
110: /**
111: * Set the second value.
112: *
113: * @param second
114: * The year value.
115: */
116: void setSec(int second);
117:
118: /**
119: * Access the millisecond value.
120: *
121: * @return The millisecond value.
122: */
123: int getMs();
124:
125: /**
126: * Set the millisecond value.
127: *
128: * @param millisecond
129: * The year value.
130: */
131: void setMs(int millisecond);
132: }
|