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