001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/ogcwebservices/wps/execute/OutputDefinition.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/exse/
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: Aennchenstraße 19
030: 53177 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:
044: package org.deegree.ogcwebservices.wps.execute;
045:
046: import java.net.URI;
047: import java.net.URL;
048:
049: import org.deegree.datatypes.Code;
050: import org.deegree.ogcwebservices.wps.WPSDescription;
051:
052: /**
053: * OutputDefinitionType.java
054: *
055: * Created on 09.03.2006. 22:35:39h
056: *
057: * Definition of a format, encoding, schema, and unit-of-measure for an output
058: * to be returned from a process.
059: *
060: * @author <a href="mailto:christian@kiehle.org">Christian Kiehle</a>
061: * @author <a href="mailto:christian.heier@gmx.de">Christian Heier</a>
062: * @version 1.0.
063: * @since 2.0
064: */
065:
066: public class OutputDefinition extends WPSDescription {
067:
068: /**
069: * Reference to the unit of measure (if any) requested for this output. A
070: * uom can be referenced when a client wants to specify one of the units of
071: * measure supported for this output. This uom shall be a unit of measure
072: * referenced for this output of this process in the Process full
073: * description.
074: */
075: protected URI uom;
076:
077: /**
078: * The encoding of this input or requested for this output (e.g., UTF-8).
079: * This "encoding" shall be included whenever the encoding required is not
080: * the default encoding indicated in the Process full description. When
081: * included, this encoding shall be one published for this output or input
082: * in the Process full description.
083: */
084: protected URI encoding;
085:
086: /**
087: * The Format of this input or requested for this output (e.g., text/XML).
088: * This element shall be omitted when the Format is indicated in the http
089: * header of the output. When included, this format shall be one published
090: * for this output or input in the Process full description.
091: */
092: protected String format;
093:
094: /**
095: * Web-accessible XML Schema Document that defines the content model of this
096: * complex resource (e.g., encoded using GML 2.2 Application Schema). This
097: * reference should be included for XML encoded complex resources to
098: * facilitate validation.
099: */
100: protected URL schema;
101:
102: /**
103: * @param identifier
104: * @param title
105: * @param _abstract
106: * @param encoding
107: * @param format
108: * @param schema
109: * @param uom
110: */
111: public OutputDefinition(Code identifier, String title,
112: String _abstract, URI encoding, String format, URL schema,
113: URI uom) {
114: super (identifier, title, _abstract);
115: this .encoding = encoding;
116: this .format = format;
117: this .schema = schema;
118: this .uom = uom;
119: }
120:
121: /**
122: * @return Returns the encoding.
123: */
124: public URI getEncoding() {
125: return encoding;
126: }
127:
128: /**
129: * @return Returns the format.
130: */
131: public String getFormat() {
132: return format;
133: }
134:
135: /**
136: * @return Returns the schema.
137: */
138: public URL getSchema() {
139: return schema;
140: }
141:
142: /**
143: * @return Returns the uom.
144: */
145: public URI getUom() {
146: return uom;
147: }
148:
149: }
|