/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2002-2011, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.gml3.bindings;
import org.geotools.gml3.GML;
import org.geotools.xml.*;
import org.opengis.temporal.Instant;
import javax.xml.namespace.QName;
/**
* Binding object for the type http://www.opengis.net/gml:TimeInstantPropertyType.
*
* <p>
*
* <pre>
* <code>
* <complexType name="TimeInstantPropertyType">
* <sequence minOccurs="0">
* <element ref="gml:TimeInstant"/>
* </sequence>
* <attributeGroup ref="gml:AssociationAttributeGroup"/>
* </complexType>
*
* </code>
* </pre>
*
* </p>
*
* @generated
*/
public class TimeInstantPropertyTypeBinding extends AbstractComplexBinding {
/**
* @generated
*/
public QName getTarget() {
return GML.TimeInstantPropertyType;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Class getType() {
return Instant.class;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
return node.getChildValue(Instant.class);
}
}