/* * GeoTools - The Open Source Java GIS Toolkit * http://geotools.org * * (C) 2002-2008, 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.wfs.bindings; import javax.xml.namespace.QName; import net.opengis.wfs.WfsFactory; import org.geotools.wfs.WFS; import org.geotools.xml.AbstractSimpleBinding; import org.geotools.xml.InstanceComponent; /** * Binding object for the type http://www.opengis.net/wfs:TypeNameListType. * * <p> * <pre> * <code> * <xsd:simpleType name="TypeNameListType"> * <xsd:restriction base="wfs:Base_TypeNameListType"> * <xsd:pattern value="((\w:)?\w(=\w)?){1,}"> * <xsd:annotation> * <xsd:documentation> * Example typeName attribute value might be: * * typeName="ns1:Inwatera_1m=A, ns2:CoastL_1M=B" * * In this example, A is an alias for ns1:Inwatera_1m * and B is an alias for ns2:CoastL_1M. * </xsd:documentation> * </xsd:annotation> * </xsd:pattern> * </xsd:restriction> * </xsd:simpleType> * * </code> * </pre> * </p> * * @generated * @deprecated this binding is not used, there's no emf object for TypeNameListType * * @source $URL$ */ public class TypeNameListTypeBinding extends AbstractSimpleBinding { public TypeNameListTypeBinding(WfsFactory factory) { } /** * @generated */ public QName getTarget() { return WFS.TypeNameListType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Class getType() { return null; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { //TODO: implement and remove call to super return super.parse(instance, value); } public String encode(Object object, String value) throws Exception { //just return the value passed in, subclasses should override to provide new value return value; } }