01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.wfs.xml;
06:
07: import org.geotools.feature.Name;
08: import org.geotools.feature.type.ProfileImpl;
09: import org.geotools.gml2.GMLSchema;
10: import org.geotools.gml2.bindings.GML;
11: import java.util.HashSet;
12: import java.util.Set;
13:
14: public class GML2Profile extends TypeMappingProfile {
15: static Set profiles = new HashSet();
16:
17: static {
18: //profile.add(new Name(GML.NAMESPACE, GML.POINTTYPE.getLocalPart()));
19: Set profile = new HashSet();
20: profile.add(new Name(GML.NAMESPACE, GML.PointPropertyType
21: .getLocalPart()));
22: //profile.add(new Name(GML.NAMESPACE, GML.MULTIPOINTTYPE.getLocalPart()));
23: profile.add(new Name(GML.NAMESPACE, GML.MultiPointPropertyType
24: .getLocalPart()));
25:
26: //profile.add(new Name(GML.NAMESPACE, GML.LINESTRINGTYPE.getLocalPart()));
27: profile.add(new Name(GML.NAMESPACE, GML.LineStringPropertyType
28: .getLocalPart()));
29: //profile.add(new Name(GML.NAMESPACE, GML.MULTILINESTRINGTYPE.getLocalPart()));
30: profile.add(new Name(GML.NAMESPACE,
31: GML.MultiLineStringPropertyType.getLocalPart()));
32:
33: //profile.add(new Name(GML.NAMESPACE, GML.POLYGONTYPE.getLocalPart()));
34: profile.add(new Name(GML.NAMESPACE, GML.PolygonPropertyType
35: .getLocalPart()));
36: //profile.add(new Name(GML.NAMESPACE, GML.MULTIPOLYGONTYPE.getLocalPart()));
37: profile.add(new Name(GML.NAMESPACE,
38: GML.MultiPolygonPropertyType.getLocalPart()));
39:
40: profile.add(new Name(GML.NAMESPACE, GML.GeometryPropertyType
41: .getLocalPart()));
42: profiles.add(new ProfileImpl(new GMLSchema(), profile));
43: }
44:
45: public GML2Profile() {
46: super(profiles);
47: }
48: }
|