package org.geotools.wfs.v2_0; import java.util.Map; import javax.xml.namespace.QName; import net.opengis.wfs.WfsFactory; import net.opengis.wfs20.AllSomeType; import net.opengis.wfs20.DropStoredQueryType; import net.opengis.wfs20.ResolveValueType; import net.opengis.wfs20.ResultTypeType; import net.opengis.wfs20.StoredQueryDescriptionType; import net.opengis.wfs20.UpdateActionType; import net.opengis.wfs20.ValueReferenceType; import net.opengis.wfs20.Wfs20Factory; import org.geotools.filter.v2_0.FESConfiguration; import org.geotools.gml3.XSDIdRegistry; import org.geotools.gml3.v3_2.GML; import org.geotools.gml3.v3_2.GMLConfiguration; import org.geotools.ows.v1_1.OWSConfiguration; import org.geotools.wfs.v2_0.bindings.EnvelopePropertyTypeBinding; import org.geotools.wfs.v2_0.bindings.ParameterParserDelegate; import org.geotools.wfs.v2_0.bindings.QueryExpressionTextDelegate; import org.geotools.wfs.v2_0.bindings.QueryExpressionTextTypeBinding; import org.geotools.wfs.v2_0.bindings.QueryTypeBinding; import org.geotools.wfs.v2_0.bindings.ReturnFeatureTypesListTypeBinding; import org.geotools.wfs.v2_0.bindings.TransactionTypeBinding; import org.geotools.wfs.v2_0.bindings.TupleTypeBinding; import org.geotools.wfs.v2_0.bindings.ValueCollectionTypeBinding; import org.geotools.wfs.v2_0.bindings.ValueReferenceTypeBinding; import org.geotools.xml.ComplexEMFBinding; import org.geotools.xml.Configuration; import org.geotools.xml.EnumSimpleBinding; import org.geotools.xml.Parser; import org.geotools.xml.SimpleContentComplexEMFBinding; import org.geotools.xs.bindings.XSQNameBinding; import org.picocontainer.MutablePicoContainer; /** * Parser configuration for the http://www.opengis.net/wfs/2.0 schema. * * @generated * * * @source $URL$ */ public class WFSConfiguration extends Configuration { /** * Creates a new configuration. * * @generated */ public WFSConfiguration() { super(WFS.getInstance()); addDependency(new OWSConfiguration()); addDependency(new FESConfiguration()); addDependency(new GMLConfiguration()); } @Override protected void configureContext(MutablePicoContainer container) { container.registerComponentInstance(WfsFactory.eINSTANCE); container.registerComponentInstance(Wfs20Factory.eINSTANCE); container.registerComponentInstance(new XSDIdRegistry()); container.registerComponentImplementation(QueryExpressionTextDelegate.class); container.registerComponentImplementation(ParameterParserDelegate.class); } @Override protected void registerBindings(Map bindings) { //Types // container.registerComponentImplementation(WFS.AbstractTransactionActionType,AbstractTransactionActionTypeBinding.class); binding(bindings, WFS.ActionResultsType); bindings.put(WFS.AllSomeType,new EnumSimpleBinding(AllSomeType.class, WFS.AllSomeType)); // container.registerComponentImplementation(WFS.BaseRequestType,BaseRequestTypeBinding.class); binding(bindings, WFS.CreatedOrModifiedFeatureType); binding(bindings, WFS.CreateStoredQueryResponseType); binding(bindings, WFS.CreateStoredQueryType); binding(bindings, WFS.DeleteType); binding(bindings, WFS.DescribeFeatureTypeType); binding(bindings, WFS.DescribeStoredQueriesResponseType); binding(bindings, WFS.DescribeStoredQueriesType); // container.registerComponentImplementation(WFS.ElementType,ElementTypeBinding.class); // container.registerComponentImplementation(WFS.EmptyType,EmptyTypeBinding.class); bindings.put(WFS.EnvelopePropertyType,EnvelopePropertyTypeBinding.class); binding(bindings, WFS.ExecutionStatusType); // container.registerComponentImplementation(WFS.ExtendedDescriptionType,ExtendedDescriptionTypeBinding.class); bindings.put(WFS.FeatureCollectionType,FeatureCollectionTypeBinding.class); binding(bindings, WFS.FeaturesLockedType); binding(bindings, WFS.FeaturesNotLockedType); // container.registerComponentImplementation(WFS.FeatureTypeListType,FeatureTypeListTypeBinding.class); // container.registerComponentImplementation(WFS.FeatureTypeType,FeatureTypeTypeBinding.class); binding(bindings, WFS.GetCapabilitiesType); binding(bindings, WFS.GetFeatureType); binding(bindings, WFS.GetFeatureWithLockType); binding(bindings, WFS.GetPropertyValueType); binding(bindings, WFS.InsertType); binding(bindings, WFS.ListStoredQueriesResponseType); binding(bindings, WFS.ListStoredQueriesType); binding(bindings, WFS.LockFeatureResponseType); binding(bindings, WFS.LockFeatureType); bindings.put(WFS.MemberPropertyType,MemberPropertyTypeBinding.class); // container.registerComponentImplementation(WFS.MetadataURLType,MetadataURLTypeBinding.class); binding(bindings, WFS.NativeType); // container.registerComponentImplementation(WFS.nonNegativeIntegerOrUnknown,NonNegativeIntegerOrUnknownBinding.class); // container.registerComponentImplementation(WFS.OutputFormatListType,OutputFormatListTypeBinding.class); binding(bindings, WFS.ParameterExpressionType); binding(bindings, WFS.ParameterType); // container.registerComponentImplementation(WFS.positiveIntegerWithStar,PositiveIntegerWithStarBinding.class); binding(bindings, WFS.PropertyType); bindings.put(WFS.QueryExpressionTextType,QueryExpressionTextTypeBinding.class); bindings.put(WFS.QueryType, QueryTypeBinding.class); binding(bindings, WFS.ReplaceType); bindings.put(WFS.ResolveValueType,new EnumSimpleBinding(ResolveValueType.class, WFS.ResolveValueType)); bindings.put(WFS.ResultTypeType, new EnumSimpleBinding(ResultTypeType.class, WFS.ResultTypeType)); bindings.put(WFS.ReturnFeatureTypesListType,ReturnFeatureTypesListTypeBinding.class); // container.registerComponentImplementation(WFS.SimpleFeatureCollectionType,SimpleFeatureCollectionTypeBinding.class); // container.registerComponentImplementation(WFS.StarStringType,StarStringTypeBinding.class); // container.registerComponentImplementation(WFS.StateValueType,StateValueTypeBinding.class); binding(bindings, WFS.StoredQueryDescriptionType); binding(bindings, WFS.StoredQueryListItemType); binding(bindings, WFS.StoredQueryType); binding(bindings, WFS.TransactionResponseType); binding(bindings, WFS.TransactionSummaryType); bindings.put(WFS.TransactionType,TransactionTypeBinding.class); bindings.put(WFS.TupleType,TupleTypeBinding.class); bindings.put(WFS.UpdateActionType, new EnumSimpleBinding(UpdateActionType.class, WFS.UpdateActionType)); binding(bindings, WFS.UpdateType); bindings.put(WFS.ValueCollectionType, ValueCollectionTypeBinding.class); // container.registerComponentImplementation(WFS.ValueListType,ValueListTypeBinding.class); // container.registerComponentImplementation(WFS.WFS_CapabilitiesType,WFS_CapabilitiesTypeBinding.class); // container.registerComponentImplementation(WFS._Abstract,_AbstractBinding.class); // container.registerComponentImplementation(WFS._additionalObjects,_additionalObjectsBinding.class); // container.registerComponentImplementation(WFS._additionalValues,_additionalValuesBinding.class); // bindings(WFS._DropStoredQuery,_DropStoredQueryBinding.class); bindings.put(WFS._PropertyName,XSQNameBinding.class); // container.registerComponentImplementation(WFS._Title,_TitleBinding.class); // container.registerComponentImplementation(WFS._truncatedResponse,_truncatedResponseBinding.class); // container.registerComponentImplementation(WFS.FeatureTypeType_NoCRS,FeatureTypeType_NoCRSBinding.class); bindings.put(WFS.PropertyType_ValueReference, ValueReferenceTypeBinding.class); // container.registerComponentImplementation(WFS.WFS_CapabilitiesType_WSDL,WFS_CapabilitiesType_WSDLBinding.class); bindings.put(WFS.Abstract, new SimpleContentComplexEMFBinding(Wfs20Factory.eINSTANCE, new QName(WFS.NAMESPACE, "AbstractType"))); bindings.put(WFS.DropStoredQuery, new ComplexEMFBinding(Wfs20Factory.eINSTANCE, WFS.DropStoredQuery, DropStoredQueryType.class)); bindings.put(WFS.Title, new SimpleContentComplexEMFBinding(Wfs20Factory.eINSTANCE, new QName(WFS.NAMESPACE, "TitleType"))); } void binding(Map bindings, QName name) { bindings.put(name, new ComplexEMFBinding(Wfs20Factory.eINSTANCE, name)); } @Override protected void configureParser(Parser parser) { //need to force the parser delegates to engage parser.setForceParserDelegate(true); } }