001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/datatypes/xlink/SimpleLink.java $
002: /*---------------- FILE HEADER ------------------------------------------
003:
004: This file is part of deegree.
005: Copyright (C) 2001-2008 by:
006: EXSE, Department of Geography, University of Bonn
007: http://www.giub.uni-bonn.de/deegree/
008: lat/lon GmbH
009: http://www.lat-lon.de
010:
011: This library is free software; you can redistribute it and/or
012: modify it under the terms of the GNU Lesser General Public
013: License as published by the Free Software Foundation; either
014: version 2.1 of the License, or (at your option) any later version.
015:
016: This library is distributed in the hope that it will be useful,
017: but WITHOUT ANY WARRANTY; without even the implied warranty of
018: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019: Lesser General Public License for more details.
020:
021: You should have received a copy of the GNU Lesser General Public
022: License along with this library; if not, write to the Free Software
023: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
024:
025: Contact:
026:
027: Andreas Poth
028: lat/lon GmbH
029: Aennchenstr. 19
030: 53115 Bonn
031: Germany
032: E-Mail: poth@lat-lon.de
033:
034: Prof. Dr. Klaus Greve
035: Department of Geography
036: University of Bonn
037: Meckenheimer Allee 166
038: 53115 Bonn
039: Germany
040: E-Mail: greve@giub.uni-bonn.de
041:
042: ---------------------------------------------------------------------------*/
043: package org.deegree.datatypes.xlink;
044:
045: import java.net.URI;
046:
047: /**
048: * Class representation of an <code>xlink:simpleLink</code> according to the
049: * <code>xlinks.xsd</code> provided with the
050: * <code>OWS Common Specification 0.3</code>.
051: *
052: * @author <a href="mailto:schneider@lat-lon.de">Markus Schneider </a>
053: */
054: public class SimpleLink {
055:
056: public final static String type = "simple";
057:
058: private URI href;
059:
060: private URI role;
061:
062: private URI arcrole;
063:
064: private String title;
065:
066: /** valid values: 'new', 'replace', 'embed', 'other' or 'none' */
067: private String show;
068:
069: /** valid values: 'onLoad', 'onRequest', 'other' or 'none' */
070: private String actuate;
071:
072: /**
073: * Creates a new <code>SimpleLink</code> instance with the minimum of
074: * neeeded information.
075: *
076: * @param href
077: * may even be null (!)
078: */
079: public SimpleLink(URI href) {
080: this .href = href;
081: }
082:
083: /**
084: * Creates a new <code>SimpleLink</code> instance with the minimum of
085: * neeeded information.
086: *
087: * @param href
088: * may even be null (!)
089: * @param role
090: * may be null
091: * @param arcrole
092: * may be null
093: * @param title
094: * may be null
095: * @param show
096: * valid values: 'new', 'replace', 'embed', 'other', 'none' (or
097: * null)
098: * @param actuate
099: * valid values: 'onLoad', 'onRequest', 'other', 'none' (or null)
100: */
101: public SimpleLink(URI href, URI role, URI arcrole, String title,
102: String show, String actuate) {
103: this .href = href;
104: this .role = role;
105: this .arcrole = arcrole;
106: this .title = title;
107: this .show = show;
108: this .actuate = actuate;
109: }
110:
111: /**
112: * @return Returns the type.
113: */
114: public static String getType() {
115: return type;
116: }
117:
118: /**
119: * @return Returns the actuate.
120: */
121: public String getActuate() {
122: return actuate;
123: }
124:
125: /**
126: * @param actuate The actuate to set.
127: */
128: public void setActuate(String actuate) {
129: this .actuate = actuate;
130: }
131:
132: /**
133: * @return Returns the arcrole.
134: */
135: public URI getArcrole() {
136: return arcrole;
137: }
138:
139: /**
140: * @param arcrole The arcrole to set.
141: */
142: public void setArcrole(URI arcrole) {
143: this .arcrole = arcrole;
144: }
145:
146: /**
147: * @return Returns the href.
148: */
149: public URI getHref() {
150: return href;
151: }
152:
153: /**
154: * @param href The href to set.
155: */
156: public void setHref(URI href) {
157: this .href = href;
158: }
159:
160: /**
161: * @return Returns the role.
162: */
163: public URI getRole() {
164: return role;
165: }
166:
167: /**
168: * @param role The role to set.
169: */
170: public void setRole(URI role) {
171: this .role = role;
172: }
173:
174: /**
175: * @return Returns the show.
176: */
177: public String getShow() {
178: return show;
179: }
180:
181: /**
182: * @param show The show to set.
183: */
184: public void setShow(String show) {
185: this .show = show;
186: }
187:
188: /**
189: * @return Returns the title.
190: */
191: public String getTitle() {
192: return title;
193: }
194:
195: /**
196: * @param title The title to set.
197: */
198: public void setTitle(String title) {
199: this.title = title;
200: }
201: }
|