org.geotools.wfs.v2_0.bindings
Class ParameterParserDelegate

Object
  extended by DefaultHandler
      extended by CopyingHandler
          extended by ParameterParserDelegate
All Implemented Interfaces:
ParserDelegate, ParserDelegate2, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ParameterParserDelegate
extends CopyingHandler
implements ParserDelegate, ParserDelegate2


Field Summary
 
Fields inherited from class CopyingHandler
buffer, namespaceContext
 
Constructor Summary
ParameterParserDelegate()
           
 
Method Summary
 boolean canHandle(QName elementName)
          Determines if this delegate can handle the specified element name.
 boolean canHandle(QName elementName, Attributes attributes, Handler handler, Handler parent)
          Determines if this delegate can handle the specified element name.
 void endElement(String uri, String localName, String qName)
           
 Object getParsedObject()
          Gets the final parsed object from the delegate.
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class CopyingHandler
characters, endDocument
 
Methods inherited from class DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ContentHandler
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 

Constructor Detail

ParameterParserDelegate

public ParameterParserDelegate()
Method Detail

canHandle

public boolean canHandle(QName elementName)
Description copied from interface: ParserDelegate
Determines if this delegate can handle the specified element name.

A common check in this method would be to check the namespace of the element.

Specified by:
canHandle in interface ParserDelegate
Parameters:
elementName - The name of the element to potentially handle.
Returns:
True if this delegate handles elements of the specified name and should take over parsing.

canHandle

public boolean canHandle(QName elementName,
                         Attributes attributes,
                         Handler handler,
                         Handler parent)
Description copied from interface: ParserDelegate2
Determines if this delegate can handle the specified element name.

A common check in this method would be to check the namespace of the element.

Specified by:
canHandle in interface ParserDelegate2
Parameters:
elementName - The name of the element to potentially handle.
attributes - The attributes of the element to potentially handle
handler - The parse handler that would normally handle the element, possibly null
parent - The parse handler for the parent element, possibly null.
Returns:
True if this delegate handles elements of the specified name and should take over parsing.

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class CopyingHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class CopyingHandler
Throws:
SAXException

getParsedObject

public Object getParsedObject()
Description copied from interface: ParserDelegate
Gets the final parsed object from the delegate.

This method is called after parsing control returns to the main parsing driver.

Specified by:
getParsedObject in interface ParserDelegate


Copyright © 1996-2014 Geotools. All Rights Reserved.