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.gml;
17:
18: import org.xml.sax.Attributes;
19: import org.xml.sax.ContentHandler;
20: import org.xml.sax.SAXException;
21:
22: /**
23: * LEVEL2 saxGML4j GML handler: Gets basic alerts from GMLFilterDocument.
24: *
25: * <p>
26: * This handler is required for any parent of a GMLFilterDocument filter. It
27: * receives basic element notifications and coordinates.
28: * </p>
29: *
30: * @author Rob Hranac, Vision for New York
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/main/java/org/geotools/gml/GMLHandlerGeometry.java $
32: * @version $Id: GMLHandlerGeometry.java 20705 2006-07-24 19:13:31Z jgarnett $
33: */
34: public interface GMLHandlerGeometry extends ContentHandler {
35: /**
36: * Receives a geometry start element from the parent.
37: */
38: abstract void geometryStart(String localName, Attributes atts)
39: throws SAXException;
40:
41: /**
42: * Receives a geometry end element from the parent.
43: */
44: abstract void geometryEnd(String localName) throws SAXException;
45:
46: /**
47: * Receives a geometry sub element from the parent.
48: */
49: abstract void geometrySub(String localName) throws SAXException;
50:
51: /**
52: * Receives a finished coordinate from the parent (2-valued).
53: */
54: abstract void gmlCoordinates(double x, double y)
55: throws SAXException;
56:
57: /**
58: * Receives a finished coordinate from the parent (3-valued).
59: */
60: abstract void gmlCoordinates(double x, double y, double z)
61: throws SAXException;
62: }
|