Source code: openfuture/editxml/model/XmlDomain.java
1 package openfuture.editxml.model;
2 /*
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.<p>
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.<p>
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<br>
16 * http://www.gnu.org/copyleft/lesser.html
17 */
18
19 import java.io.Serializable;
20 import java.util.LinkedList;
21
22 // Configuration Management Information:
23 // -------------------------------------
24 // $Id: XmlDomain.java,v 1.1.1.1 2001/07/08 18:29:29 wreissen Exp $
25 //
26 // Version History:
27 // ----------------
28 // $Log: XmlDomain.java,v $
29 // Revision 1.1.1.1 2001/07/08 18:29:29 wreissen
30 // initial version registered ad SourceForge
31 //
32 // Revision 1.1 2001/05/09 20:07:27 wreissen
33 // initial version.
34 //
35 //
36 // ***********************************************************************************
37 /**
38 * Bean holding all attributes of a XML domain, i.e. a set of files
39 * with the same DTD, directory, editor and URL prefix.<p>
40 *
41 *
42 * Created: Tue Apr 10 18:38:33 2001
43 *
44 * @author <a href="mailto:wolfgang@openfuture.de">Wolfgang Reissenberger</a>
45 * @version $Revision: 1.1.1.1 $
46 */
47
48 public class XmlDomain implements Serializable {
49
50 private String name;
51 private String dtd;
52 private String editor;
53 private String directory;
54 private String urlprefix;
55 private String nameFilter;
56 private LinkedList xmlPaths;
57
58
59
60 /**
61 * Create a new XML domain
62 *
63 * @param name domain name
64 * @param dtd URL of the DTD
65 * @param editor URL of the editor
66 * @param directory upload directory
67 * @param nameFilter filter for file names
68 * @param urlprefix URL prefix where the XML files could be
69 * retrieved.
70 * @param xmlPaths set of XML paths that define the XML structure.
71 */
72 public XmlDomain (String name, String dtd, String editor,
73 String directory, String nameFilter, String urlprefix,
74 LinkedList xmlPaths) {
75 setName(name);
76 setDtd(dtd);
77 setEditor(editor);
78 setDirectory(directory);
79 setNameFilter(nameFilter);
80 setUrlprefix(urlprefix);
81 setXmlPaths(xmlPaths);
82 }
83
84 /**
85 * Get the value of name.
86 * @return value of name.
87 */
88 public String getName() {
89 return name;
90 }
91
92 /**
93 * LinkedList the value of name.
94 * @param v Value to assign to name.
95 */
96 public void setName(String v) {
97 this.name = v;
98 }
99
100 /**
101 * Get the value of dtd.
102 * @return value of dtd.
103 */
104 public String getDtd() {
105 return dtd;
106 }
107
108 /**
109 * Set the value of dtd.
110 * @param v Value to assign to dtd.
111 */
112 public void setDtd(String v) {
113 this.dtd = v;
114 }
115
116
117 /**
118 * Get the value of editor.
119 * @return value of editor.
120 */
121 public String getEditor() {
122 return editor;
123 }
124
125 /**
126 * Set the value of editor.
127 * @param v Value to assign to editor.
128 */
129 public void setEditor(String v) {
130 this.editor = v;
131 }
132
133
134 /**
135 * Get the value of directory.
136 * @return value of directory.
137 */
138 public String getDirectory() {
139 return directory;
140 }
141
142 /**
143 * Set the value of directory.
144 * @param v Value to assign to directory.
145 */
146 public void setDirectory(String v) {
147 this.directory = v;
148 }
149
150
151 /**
152 * Get the value of urlprefix.
153 * @return value of urlprefix.
154 */
155 public String getUrlprefix() {
156 return urlprefix;
157 }
158
159 /**
160 * Set the value of urlprefix.
161 * @param v Value to assign to urlprefix.
162 */
163 public void setUrlprefix(String v) {
164 this.urlprefix = v;
165 }
166
167
168 /**
169 * Get the value of nameFilter.
170 * @return value of nameFilter.
171 */
172 public String getNameFilter() {
173 return nameFilter;
174 }
175
176 /**
177 * Set the value of nameFilter.
178 * @param v Value to assign to nameFilter.
179 */
180 public void setNameFilter(String v) {
181 this.nameFilter = v;
182 }
183
184
185 /**
186 * Get the value of xmlPaths.
187 * @return value of xmlPaths.
188 */
189 public LinkedList getXmlPaths() {
190 return xmlPaths;
191 }
192
193 /**
194 * Set the value of xmlPaths.
195 * @param v Value to assign to xmlPaths.
196 */
197 public void setXmlPaths(LinkedList v) {
198 this.xmlPaths = v;
199 }
200
201
202 /**
203 * Convert to String. Returns the domain name.
204 *
205 * @return domain name
206 * @see {@link #getName()}
207 */
208 public String toString() {
209 return getName();
210 }
211 } // XmlDomain