001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcwebservices/wcs/InterpolationMethod.java $
002 package org.deegree.ogcwebservices.wcs;
003
004 /**
005 *
006 *
007 * @version $Revision: 6259 $
008 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
009 * @author last edited by: $Author: bezema $
010 *
011 * @version 1.0. $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
012 *
013 * @since 2.0
014 */
015 public class InterpolationMethod {
016
017 public static final String NEAREST_NEIGHBOR = "nearest neighbor";
018 public static final String BILINEAR = "bilinear";
019 public static final String LOST_AREA = "lost area";
020 public static final String BARYCENTRIC = "barycentric";
021 public static final String NONE = "none";
022
023 public String value = NEAREST_NEIGHBOR;
024
025 /**
026 * default = NEAREST_NEIGHBOR
027 */
028 public InterpolationMethod() {
029 }
030
031 /**
032 * @param value
033 */
034 public InterpolationMethod(String value) {
035 this.value = value;
036 }
037
038 /**
039 * Compares the specified object with
040 * this enum for equality.
041 */
042 public boolean equals(Object object) {
043 if (object!=null && getClass().equals(object.getClass()))
044 {
045 return ((InterpolationMethod) object).value.equals( value );
046 }
047 return false;
048 }
049 }
050 /* ********************************************************************
051 Changes to this class. What the people have been up to:
052 $Log$
053 Revision 1.1 2005/01/05 10:32:18 poth
054 Initial revision
055
056 Revision 1.3 2004/07/12 06:12:11 ap
057 no message
058
059 Revision 1.2 2004/05/25 07:19:13 ap
060 no message
061
062 Revision 1.1 2004/05/24 06:54:38 ap
063 no message
064
065
066 ********************************************************************** */
067