001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcwebservices/wps/capabilities/WPSOperationsMetadata.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2005 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.capabilities; 045 046 import java.util.ArrayList; 047 import java.util.List; 048 049 import org.deegree.ogcwebservices.getcapabilities.Operation; 050 import org.deegree.ogcwebservices.getcapabilities.OperationsMetadata; 051 import org.deegree.owscommon.OWSDomainType; 052 053 /** 054 * WPSOperationsMetadata.java 055 * 056 * Created on 08.03.2006. 19:26:51h 057 * 058 * Metadata about the operations and related abilities specified by this service and implemented by 059 * this server, including the URLs for operation requests. The basic contents of this section shall 060 * be the same for all OWS types, but individual services can add elements and/or change the 061 * optionality of optional elements. 062 * 063 * @author <a href="mailto:christian@kiehle.org">Christian Kiehle</a> 064 * @author <a href="mailto:christian.heier@gmx.de">Christian Heier</a> 065 * @version 1.0. 066 * @since 2.0 067 */ 068 public class WPSOperationsMetadata extends OperationsMetadata { 069 070 /** 071 * WPS describe process operation. 072 */ 073 private Operation describeProcess; 074 075 /** 076 * WPS execute operation. 077 */ 078 private Operation execute; 079 080 /** 081 * 082 */ 083 public static final String DESCRIBEPROCESS = "DescribeProcess"; 084 085 /** 086 * 087 */ 088 public static final String EXECUTE = "Execute"; 089 090 /** 091 * 092 * @param getCapabilitiesOperation 093 * @param describeProcess 094 * @param execute 095 * @param parameters 096 * @param constraints 097 */ 098 public WPSOperationsMetadata( Operation getCapabilitiesOperation, Operation describeProcess, 099 Operation execute, OWSDomainType[] parameters, 100 OWSDomainType[] constraints ) { 101 super( getCapabilitiesOperation, parameters, constraints ); 102 this.describeProcess = describeProcess; 103 this.execute = execute; 104 } 105 106 /** 107 * Returns all <code>Operations</code> known to the WPS. 108 * 109 * @return all <code>Operations</code> known to the WPS. 110 */ 111 @Override 112 public Operation[] getOperations() { 113 List<Operation> list = new ArrayList<Operation>( 3 ); 114 list.add( describeProcess ); 115 list.add( getCapabilitiesOperation ); 116 list.add( execute ); 117 Operation[] ops = new Operation[list.size()]; 118 return list.toArray( ops ); 119 } 120 121 /** 122 * @return Returns the describeProcess. 123 */ 124 public Operation getDescribeProcess() { 125 return describeProcess; 126 } 127 128 /** 129 * @param describeProcess 130 * The describeProcess to set. 131 */ 132 public void setDescribeProcess( Operation describeProcess ) { 133 this.describeProcess = describeProcess; 134 } 135 136 /** 137 * @return Returns the execute. 138 */ 139 public Operation getExecute() { 140 return execute; 141 } 142 143 /** 144 * @param execute 145 * The execute to set. 146 */ 147 public void setExecute( Operation execute ) { 148 this.execute = execute; 149 } 150 151 } 152 /*************************************************************************************************** 153 * <code> 154 Changes to this class. What the people have been up to: 155 156 $Log$ 157 Revision 1.7 2007/02/27 13:06:36 wanhoff 158 fixed Javadoc @return tag and footer 159 160 Revision 1.6 2006/11/27 09:07:51 poth 161 JNI integration of proj4 has been removed. The CRS functionality now will be done by native deegree code. 162 163 Revision 1.5 2006/08/24 06:42:16 poth 164 File header corrected 165 166 Revision 1.4 2006/07/12 14:46:15 poth 167 comment footer added 168 169 </code> 170 **************************************************************************************************/