001 //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/wps/ProcessBrief.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.ogcwebservices.wps; 037 038 import java.util.ArrayList; 039 import java.util.List; 040 041 import org.deegree.datatypes.Code; 042 import org.deegree.ogcwebservices.MetadataType; 043 044 /** 045 * ProcessBrief.java 046 * 047 * Created on 09.03.2006. 14:13:37h 048 * 049 * Brief description of a Process, designed for Process discovery. 050 * 051 * @author <a href="mailto:christian@kiehle.org">Christian Kiehle</a> 052 * @author <a href="mailto:christian.heier@gmx.de">Christian Heier</a> 053 * @author last edited by: $Author: mschneider $ 054 * 055 * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $ 056 */ 057 public class ProcessBrief extends WPSDescription { 058 059 /** 060 * Optional unordered list of additional metadata about this process. A list of optional and/or 061 * required metadata elements for this process could be specified in a specific Application 062 * Profile for this service. 063 */ 064 private List<MetadataType> metadata; 065 066 /** 067 * Optional unordered list of additional metadata about this process. A list of optional and/or 068 * required metadata elements for this process could be specified in a specific Application 069 * Profile for this service. 070 */ 071 private String processVersion; 072 073 /** 074 * 075 * @param identifier 076 * @param title 077 * @param _abstract 078 * @param processVersion 079 * @param metadata 080 */ 081 public ProcessBrief( Code identifier, String title, String _abstract, String processVersion, 082 List<MetadataType> metadata ) { 083 super( identifier, title, _abstract ); 084 this.processVersion = processVersion; 085 this.metadata = metadata; 086 } 087 088 /** 089 * 090 * @param identifier 091 * @param title 092 */ 093 public ProcessBrief( Code identifier, String title ) { 094 super( identifier, title ); 095 } 096 097 /** 098 * 099 * @return metadata 100 */ 101 public List<MetadataType> getMetadata() { 102 if ( metadata == null ) { 103 metadata = new ArrayList<MetadataType>(); 104 } 105 return this.metadata; 106 } 107 108 /** 109 * 110 * @param metadataType 111 */ 112 public void setMetadata( List<MetadataType> metadataType ) { 113 this.metadata = metadataType; 114 } 115 116 /** 117 * 118 * @return processVersion 119 */ 120 public String getProcessVersion() { 121 return processVersion; 122 } 123 124 /** 125 * 126 * @param value 127 */ 128 public void setProcessVersion( String value ) { 129 this.processVersion = value; 130 } 131 132 }