001: /*
002: ** Java cvs client library package.
003: ** Copyright (c) 1997-2002 by Timothy Gerard Endres
004: **
005: ** This program is free software.
006: **
007: ** You may redistribute it and/or modify it under the terms of the GNU
008: ** Library General Public License (LGPL) as published by the Free Software
009: ** Foundation.
010: **
011: ** Version 2 of the license should be included with this distribution in
012: ** the file LICENSE.txt, as well as License.html. If the license is not
013: ** included with this distribution, you may find a copy at the FSF web
014: ** site at 'www.gnu.org' or 'www.fsf.org', or you may write to the Free
015: ** Software Foundation at 59 Temple Place - Suite 330, Boston, MA 02111 USA.
016: **
017: ** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,
018: ** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
019: ** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY
020: ** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR
021: ** REDISTRIBUTION OF THIS SOFTWARE.
022: **
023: */
024:
025: package com.ice.cvsc;
026:
027: import java.io.*;
028: import java.lang.*;
029: import java.text.*;
030: import java.util.*;
031:
032: /**
033: * Encapsulates a 'Notify' request, resulting a an 'edit' or 'unedit'.
034: *
035: * @version $Revision: 2.2 $
036: * @author Timothy Gerard Endres, <a href="mailto:time@ice.com">time@ice.com</a>.
037: * @see CVSEntry
038: * @see CVSRequest
039: */
040:
041: public class CVSNotifyItem extends Object {
042: static public final String RCS_ID = "$Id: CVSNotifyItem.java,v 2.2 2003/07/27 01:08:32 time Exp $";
043: static public final String RCS_REV = "$Revision: 2.2 $";
044:
045: private String type;
046: private String name;
047: private String time;
048: private String host;
049: private String wdir;
050: private String watches;
051:
052: private String repository;
053:
054: public CVSNotifyItem(String type, String name, String time,
055: String host, String wdir, String watches, String repository) {
056: super ();
057:
058: this .type = type;
059: this .name = name;
060: this .time = time;
061: this .host = host;
062: this .wdir = wdir;
063: this .watches = watches;
064: this .repository = repository;
065: }
066:
067: public String getType() {
068: return this .type;
069: }
070:
071: public String getName() {
072: return this .name;
073: }
074:
075: public String getTime() {
076: return this .time;
077: }
078:
079: public String getHostname() {
080: return this .host;
081: }
082:
083: public String getWorkingDirectory() {
084: return this .wdir;
085: }
086:
087: public String getWatches() {
088: return this .watches;
089: }
090:
091: public String getRepository() {
092: return this .repository;
093: }
094:
095: public String getServerExtra() {
096: return this .type + "\t" + this .time + "\t" + this .host + "\t"
097: + this .wdir + "\t" + this .watches;
098: }
099:
100: public String toString() {
101: return "[" + this .type + "," + this .name + "," + this .time
102: + "," + this .host + "," + this .wdir + ","
103: + this .watches + "," + this .repository + "]";
104: }
105: }
|