org.geotools.xml.impl
Class DocumentHandlerImpl

Object
  extended by HandlerImpl
      extended by DocumentHandlerImpl
All Implemented Interfaces:
DocumentHandler, Handler

public class DocumentHandlerImpl
extends HandlerImpl
implements DocumentHandler


Constructor Summary
DocumentHandlerImpl(HandlerFactory factory, ParserHandler parser)
           
 
Method Summary
 Handler createChildHandler(QName qName)
          Returns a handler for a component in the schema which is a child of this component.
 void endChildHandler(Handler child)
          Called when a child handler is finished, on the trailing edge of the child element.
 void endDocument()
           
 InstanceComponent getComponent()
           
 Handler getParentHandler()
           
 Node getParseNode()
           
 XSDSchemaContent getSchemaContent()
           
 Object getValue()
           
 void startChildHandler(Handler child)
          Called when a child handler is started, on the leading edge of the child element.
 void startDocument()
          Returns the element handler for the root element of an instance document.
 
Methods inherited from class HandlerImpl
getContext, setContext
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Handler
getContext, setContext
 

Constructor Detail

DocumentHandlerImpl

public DocumentHandlerImpl(HandlerFactory factory,
                           ParserHandler parser)
Method Detail

getSchemaContent

public XSDSchemaContent getSchemaContent()
Specified by:
getSchemaContent in interface Handler
Returns:
The entity of the schema that corresponds to the handler.

getComponent

public InstanceComponent getComponent()
Specified by:
getComponent in interface Handler
Returns:
The instance of the schema content that is currently being handled.

getValue

public Object getValue()

getParseNode

public Node getParseNode()
Specified by:
getParseNode in interface Handler
Returns:
The parse tree for the handler.

createChildHandler

public Handler createChildHandler(QName qName)
Description copied from interface: Handler
Returns a handler for a component in the schema which is a child of this component.

This method will return null in two situations:

  1. The schema component being handled does not support children (for example, an attribute).
  2. A child with the specified qName could not be found.

Specified by:
createChildHandler in interface Handler
Parameters:
qName - The qualified name of the schema component.
Returns:
A new handler, or null if one cannot be created.

startChildHandler

public void startChildHandler(Handler child)
Description copied from interface: Handler
Called when a child handler is started, on the leading edge of the child element.

Specified by:
startChildHandler in interface Handler
Parameters:
child - The executing child handler.

endChildHandler

public void endChildHandler(Handler child)
Description copied from interface: Handler
Called when a child handler is finished, on the trailing edge of the child element.

Specified by:
endChildHandler in interface Handler
Parameters:
child - The executing child handler.

getParentHandler

public Handler getParentHandler()
Specified by:
getParentHandler in interface Handler
Returns:
The parent handler.
See Also:
Handler#getChildHandler(QName, SchemaBuilder)

startDocument

public void startDocument()
Description copied from interface: DocumentHandler
Returns the element handler for the root element of an instance document.

Specified by:
startDocument in interface DocumentHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface DocumentHandler


Copyright © 1996-2009 Geotools. All Rights Reserved.