-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRTMLProject.java
More file actions
114 lines (102 loc) · 3.02 KB
/
RTMLProject.java
File metadata and controls
114 lines (102 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
Copyright 2006, Astrophysics Research Institute, Liverpool John Moores University.
This file is part of org.estar.rtml.
org.estar.rtml is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
org.estar.rtml is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with org.estar.rtml; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// RTMLProject.java
// $Header: /space/home/eng/cjm/cvs/org_estar_rtml/RTMLProject.java,v 1.5 2008-05-27 14:20:32 cjm Exp $
package org.estar.rtml;
import java.io.*;
/**
* This class is a data container for information contained in the Project nodes/tags of an RTML document.
* @author Chris Mottram
* @version $Revision$
* @see org.estar.rtml.RTMLAttributes
*/
public class RTMLProject extends RTMLAttributes implements Serializable
{
/**
* Revision control system version id.
*/
public final static String RCSID = "$Id$";
/**
* Serial version ID. Fixed as these documents can be used as parameters in RMI calls across JVMs.
*/
static final long serialVersionUID = -5939557845442641621L;
/**
* The project text node, currently used to store the proposal ID for LT/FTN/FTS.
* In RTML3.0, this will change to ProjectID.
*/
private String project = null;
/**
* Default constructor.
*/
public RTMLProject()
{
super();
}
/**
* Method to set the Project.
* @param p The project - currently the LT/FTN/FTS proposal ID.
*/
public void setProject(String p)
{
project = p;
}
/**
* Method to get the current project.
* @return The project.
* @see #project
*/
public String getProject()
{
return project;
}
/**
* String representation of this Project.
* @see #toString(java.lang.String)
*/
public String toString()
{
return(toString(""));
}
/**
* String representation of this Project, with specified prefix.
* @param prefix A string to prefix to each line of data we print out.
* @see #getProject
* @see org.estar.rtml.RTMLAttributes#toString(java.lang.String)
*/
public String toString(String prefix)
{
StringBuffer sb = new StringBuffer();
sb.append(prefix+"Project :\n");
sb.append(super.toString(prefix+"\t"));
sb.append(prefix+"\tProject : "+project+"\n");
return(sb.toString());
}
}
//
// $Log: not supported by cvs2svn $
// Revision 1.4 2008/05/23 17:06:01 cjm
// Now extends RTMLAttributes.
//
// Revision 1.3 2007/01/30 18:31:20 cjm
// gnuify: Added GNU General Public License.
//
// Revision 1.2 2005/01/19 15:30:38 cjm
// Added Serializable.
//
// Revision 1.1 2005/01/18 15:08:28 cjm
// Initial revision
//
//