|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectXMLFilterImpl
FilterFilter
public class FilterFilter
Creates an OGC filter using a SAX filter.
Possibly the worst-named class of all time, FilterFilter
extracts an OGC filter object from an XML stream and passes it to its
parent as a fully instantiated OGC filter object.
| Field Summary | |
|---|---|
protected boolean |
insideFilter
Whether Whether we are currently processing a filter. |
| Constructor Summary | |
|---|---|
FilterFilter(FilterHandler parent,
SimpleFeatureType schema)
Constructor with parent, which must implement GMLHandlerJTS. |
|
FilterFilter(FilterHandler parent,
SimpleFeatureType schema,
boolean convertLiteralToNumber)
Constructor with parent, which must implement GMLHandlerJTS. |
|
| Method Summary | |
|---|---|
void |
characters(char[] chars,
int start,
int length)
Reads the only internal characters read by filters. |
protected static short |
convertType(String filterType)
Converts the string representation of the expression to the AbstractFilter or DefaultExpression short type. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Checks for filter element end and - if not a Filter then sends it directly to the appropriate filter factory. |
void |
geometry(Geometry geometry)
Recieves a geometry from its child filter. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Checks the name of the element, and sends to the appropriate filter creation factory. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ContentHandler |
|---|
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
| Field Detail |
|---|
protected boolean insideFilter
| Constructor Detail |
|---|
public FilterFilter(FilterHandler parent,
SimpleFeatureType schema)
parent - The parent of this filter, to recieve the filters created.schema - The schema that the filter will be used against.
public FilterFilter(FilterHandler parent,
SimpleFeatureType schema,
boolean convertLiteralToNumber)
parent - The parent of this filter, to recieve the filters created.schema - The schema that the filter will be used against.| Method Detail |
|---|
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class XMLFilterImplnamespaceURI - The namespace of the element.localName - The local name of the element.qName - The full name of the element, including namespace prefix.atts - The element attributes.
SAXException - Some parsing error occured while reading filter.
public void characters(char[] chars,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class XMLFilterImplchars - Raw coordinate string from the filter document.start - Beginning character position of raw string.length - Length of the character string.
SAXException - Some parsing error occurred while reading
coordinates.
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class XMLFilterImplnamespaceURI - Namespace of the element.localName - Local name of the element.qName - Full name of the element, including namespace prefix.
SAXException - Parsing error occurred while reading coordinates.
public void geometry(Geometry geometry)
throws RuntimeException
geometry in interface GMLHandlerJTSgeometry - The geometry from the filter.
RuntimeException - if the filterFactory can't handle the geometryprotected static short convertType(String filterType)
filterType - Type of filter for check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||