01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.sld.bindings;
17:
18: import org.picocontainer.MutablePicoContainer;
19: import org.w3c.dom.Document;
20: import org.w3c.dom.Element;
21: import javax.xml.namespace.QName;
22: import org.opengis.filter.expression.PropertyName;
23: import org.geotools.xml.*;
24:
25: /**
26: * Binding object for the element http://www.opengis.net/sld:Geometry.
27: *
28: * <p>
29: * <pre>
30: * <code>
31: * <xsd:element name="Geometry">
32: * <xsd:annotation>
33: * <xsd:documentation> A Geometry gives reference to a
34: * (the) geometry property of a feature to be used for
35: * rendering. </xsd:documentation>
36: * </xsd:annotation>
37: * <xsd:complexType>
38: * <xsd:sequence>
39: * <xsd:element ref="ogc:PropertyName"/>
40: * </xsd:sequence>
41: * </xsd:complexType>
42: * </xsd:element>
43: *
44: * </code>
45: * </pre>
46: * </p>
47: *
48: * @generated
49: */
50: public class SLDGeometryBinding extends AbstractComplexBinding {
51: /**
52: * @generated
53: */
54: public QName getTarget() {
55: return SLD.GEOMETRY;
56: }
57:
58: /**
59: * <!-- begin-user-doc -->
60: * <!-- end-user-doc -->
61: *
62: * @generated modifiable
63: */
64: public int getExecutionMode() {
65: return AFTER;
66: }
67:
68: /**
69: * <!-- begin-user-doc -->
70: * <!-- end-user-doc -->
71: *
72: * @generated modifiable
73: */
74: public Class getType() {
75: return PropertyName.class;
76: }
77:
78: /**
79: * <!-- begin-user-doc -->
80: * <!-- end-user-doc -->
81: *
82: * @generated modifiable
83: */
84: public void initialize(ElementInstance instance, Node node,
85: MutablePicoContainer context) {
86: }
87:
88: /**
89: * <!-- begin-user-doc -->
90: * <!-- end-user-doc -->
91: *
92: * @generated modifiable
93: */
94: public Object parse(ElementInstance instance, Node node,
95: Object value) throws Exception {
96: return node.getChildValue(PropertyName.class);
97: }
98: }
|