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