package org.geotools.wcs.bindings;
import javax.xml.namespace.QName;
import net.opengis.wcs10.InterpolationMethodType;
import org.geotools.wcs.WCS;
import org.geotools.xml.AbstractSimpleBinding;
import org.geotools.xml.InstanceComponent;
/**
* Binding object for the type
* http://www.opengis.net/wcs:InterpolationMethodType.
*
* <p>
*
* <pre>
* <code>
* <simpleType name="InterpolationMethodType">
* <annotation>
* <documentation>Codes that identify interpolation methods. The meanings of these codes are defined in Annex B of ISO 19123: Geographic information � Schema for coverage geometry and functions. </documentation>
* </annotation>
* <restriction base="string">
* <enumeration value="nearest neighbor"/>
* <enumeration value="bilinear"/>
* <enumeration value="bicubic"/>
* <enumeration value="lost area"/>
* <enumeration value="barycentric"/>
* <enumeration value="none">
* <annotation>
* <documentation>No interpolation. </documentation>
* </annotation>
* </enumeration>
* </restriction>
* </simpleType>
*
* </code>
* </pre>
*
* </p>
*
* @generated
*
* @source $URL: http://svn.osgeo.org/geotools/trunk/modules/extension/xsd/xsd-wcs/src/main/java/org/geotools/wcs/bindings/InterpolationMethodTypeBinding.java $
*/
public class InterpolationMethodTypeBinding extends AbstractSimpleBinding {
/**
* @generated
*/
public QName getTarget() {
return WCS.InterpolationMethodType;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Class getType() {
return InterpolationMethodType.class;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(InstanceComponent instance, Object value)
throws Exception {
return InterpolationMethodType.get((String) value);
}
}