package org.geotools.wcs.bindings;
import javax.xml.namespace.QName;
import net.opengis.wcs10.DomainSubsetType;
import net.opengis.wcs10.SpatialSubsetType;
import net.opengis.wcs10.Wcs10Factory;
import org.geotools.wcs.WCS;
import org.geotools.xml.AbstractComplexBinding;
import org.geotools.xml.ElementInstance;
import org.geotools.xml.Node;
/**
* Binding object for the type http://www.opengis.net/wcs:DomainSubsetType.
*
* <p>
*
* <pre>
* <code>
* <complexType name="DomainSubsetType">
* <annotation>
* <documentation>Defines the desired subset of the domain set of the coverage. Is a GML property containing either or both spatialSubset and temporalSubset GML objects. </documentation>
* </annotation>
* <choice>
* <sequence>
* <element ref="wcs:spatialSubset"/>
* <element minOccurs="0" ref="wcs:temporalSubset"/>
* </sequence>
* <element ref="wcs:temporalSubset"/>
* </choice>
* </complexType>
*
* </code>
* </pre>
*
* </p>
*
* @generated
*
* @source $URL: http://svn.osgeo.org/geotools/trunk/modules/extension/xsd/xsd-wcs/src/main/java/org/geotools/wcs/bindings/DomainSubsetTypeBinding.java $
*/
public class DomainSubsetTypeBinding extends AbstractComplexBinding {
/**
* @generated
*/
public QName getTarget() {
return WCS.DomainSubsetType;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Class getType() {
return DomainSubsetType.class;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value)
throws Exception {
DomainSubsetType domainSubset = Wcs10Factory.eINSTANCE.createDomainSubsetType();
SpatialSubsetType spatialSubset = (SpatialSubsetType) node.getChildValue("spatialSubset");
if (spatialSubset != null)
domainSubset.setSpatialSubset(spatialSubset);
return domainSubset;
}
/*
* (non-Javadoc)
*
* @see org.geotools.xml.AbstractComplexBinding#getExecutionMode()
*/
@Override
public int getExecutionMode() {
return OVERRIDE;
}
}