001 // $HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcbase/ExceptionCode.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2006 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 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 Aennchenstr. 19 030 53115 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.ogcbase; 045 046 /** 047 * @version $Revision: 6450 $ 048 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a> 049 * @author last edited by: $Author: rbezema $ 050 * 051 * @version 1.0. $Revision: 6450 $, $Date: 2007-03-29 12:36:08 +0200 (Do, 29 Mär 2007) $ 052 * 053 * @since 2.0 054 */ 055 056 public class ExceptionCode { 057 058 public static final ExceptionCode INVALID_FORMAT = new ExceptionCode( 059 "InvalidFormat"); 060 public static final ExceptionCode INVALID_UPDATESEQUENCE = new ExceptionCode( 061 "InvalidUpdateSequence"); 062 public static final ExceptionCode CURRENT_UPDATE_SEQUENCE = new ExceptionCode( 063 "CurrentUpdateSequence"); 064 public static final ExceptionCode MISSINGPARAMETERVALUE = new ExceptionCode( 065 "MissingParameterValue"); 066 public static final ExceptionCode INVALIDPARAMETERVALUE = new ExceptionCode( 067 "InvalidParameterValue"); 068 public static final ExceptionCode OPERATIONNOTSUPPORTED = new ExceptionCode( 069 "OperationNotSupported"); 070 public static final ExceptionCode VERSIONNEGOTIATIONFAILED = new ExceptionCode( 071 "VersionNegotiationFailed"); 072 public static final ExceptionCode NOAPPLICABLECODE = new ExceptionCode( 073 "NoApplicableCode"); 074 075 public static final ExceptionCode LAYER_NOT_DEFINED = new ExceptionCode( "LayerNotDefined" ); 076 077 public static final ExceptionCode STYLE_NOT_DEFINED = new ExceptionCode( "StyleNotDefined" ); 078 079 public static final ExceptionCode INVALID_SRS = new ExceptionCode( "InvalidSRS" ); 080 081 public static final ExceptionCode INVALID_CRS = new ExceptionCode( "InvalidCRS" ); 082 083 public static final ExceptionCode LAYER_NOT_QUERYABLE = new ExceptionCode( "LayerNotQueryable" ); 084 085 public static final ExceptionCode INVALID_POINT = new ExceptionCode( "InvalidPoint" ); 086 087 public String value = "InvalidFormat"; 088 089 /** 090 * default value = TC211, (InvalidFormat) 091 */ 092 public ExceptionCode() { 093 //nothing 094 } 095 096 /** 097 * @param value 098 */ 099 public ExceptionCode(String value) { 100 this.value = value; 101 } 102 103 /** 104 * Compares the specified object with 105 * this class for equality. 106 */ 107 @Override 108 public boolean equals(Object object) 109 { 110 if (object!=null && getClass().equals(object.getClass())) 111 { 112 return ((ExceptionCode) object).value.equals( value ); 113 } 114 return false; 115 } 116 } 117 /* ******************************************************************** 118 Changes to this class. What the people have been up to: 119 $Log$ 120 Revision 1.9 2006/11/22 14:06:26 schmitz 121 Fixed some minor details in the WMS example configuration. 122 Added CRS:84 to proj4. 123 Fixed exception handling for WMS. 124 125 Revision 1.8 2006/09/08 08:42:02 schmitz 126 Updated the WMS to be 1.1.1 conformant once again. 127 Cleaned up the WMS code. 128 Added cite WMS test data. 129 130 Revision 1.7 2006/07/28 08:01:27 schmitz 131 Updated the WMS for 1.1.1 compliance. 132 Fixed some documentation. 133 134 Revision 1.6 2006/06/25 20:34:08 poth 135 *** empty log message *** 136 137 Revision 1.5 2006/04/06 20:25:22 poth 138 *** empty log message *** 139 140 Revision 1.4 2006/04/04 20:39:40 poth 141 *** empty log message *** 142 143 Revision 1.3 2006/03/30 21:20:24 poth 144 *** empty log message *** 145 146 Revision 1.2 2005/01/18 22:08:54 poth 147 no message 148 149 Revision 1.8 2004/07/12 06:12:11 ap 150 no message 151 152 Revision 1.7 2004/06/28 15:40:13 mschneider 153 Finished the generation of the ServiceIdentification part of the 154 Capabilities from DOM, added functionality to the XMLTools helper 155 class. 156 157 Revision 1.6 2004/06/18 06:18:45 ap 158 no message 159 160 Revision 1.5 2004/06/16 11:48:17 ap 161 no message 162 163 Revision 1.4 2004/06/16 09:46:02 ap 164 no message 165 166 Revision 1.3 2004/06/14 15:50:23 ap 167 no message 168 169 Revision 1.2 2004/05/25 07:19:13 ap 170 no message 171 172 Revision 1.1 2004/05/24 06:52:07 ap 173 no message 174 175 176 ********************************************************************** */