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.geotools.styling.Fill;
23: import org.geotools.styling.Graphic;
24: import org.geotools.xml.*;
25:
26: /**
27: * Binding object for the element http://www.opengis.net/sld:GraphicFill.
28: *
29: * <p>
30: * <pre>
31: * <code>
32: * <xsd:element name="GraphicFill">
33: * <xsd:annotation>
34: * <xsd:documentation> A "GraphicFill" defines
35: * repeated-graphic filling (stippling) pattern for an
36: * area geometry. </xsd:documentation>
37: * </xsd:annotation>
38: * <xsd:complexType>
39: * <xsd:sequence>
40: * <xsd:element ref="sld:Graphic"/>
41: * </xsd:sequence>
42: * </xsd:complexType>
43: * </xsd:element>
44: *
45: * </code>
46: * </pre>
47: * </p>
48: *
49: * @generated
50: */
51: public class SLDGraphicFillBinding extends AbstractComplexBinding {
52: /**
53: * @generated
54: */
55: public QName getTarget() {
56: return SLD.GRAPHICFILL;
57: }
58:
59: /**
60: * <!-- begin-user-doc -->
61: * <!-- end-user-doc -->
62: *
63: * @generated modifiable
64: */
65: public int getExecutionMode() {
66: return AFTER;
67: }
68:
69: /**
70: * <!-- begin-user-doc -->
71: * <!-- end-user-doc -->
72: *
73: * @generated modifiable
74: */
75: public Class getType() {
76: return Graphic.class;
77: }
78:
79: /**
80: * <!-- begin-user-doc -->
81: * <!-- end-user-doc -->
82: *
83: * @generated modifiable
84: */
85: public void initialize(ElementInstance instance, Node node,
86: MutablePicoContainer context) {
87: }
88:
89: /**
90: * <!-- begin-user-doc -->
91: * <!-- end-user-doc -->
92: *
93: * @generated modifiable
94: */
95: public Object parse(ElementInstance instance, Node node,
96: Object value) throws Exception {
97: return node.getChildValue("Graphic");
98: }
99: }
|