Package org.geotools.xsd.impl
Class DocumentHandlerImpl
Object
HandlerImpl
DocumentHandlerImpl
- All Implemented Interfaces:
DocumentHandler
,Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChildHandler
(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
XSDSchemaContent
getValue()
void
startChildHandler
(Handler child) Called when a child handler is started, on the leading edge of the child element.void
Methods inherited from class HandlerImpl
endPrefixMapping, getContext, setContext, startPrefixMapping
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Handler
endPrefixMapping, getContext, setContext, startPrefixMapping
-
Constructor Details
-
DocumentHandlerImpl
-
-
Method Details
-
getSchemaContent
public XSDSchemaContent getSchemaContent()- Specified by:
getSchemaContent
in interfaceHandler
- Returns:
- The entity of the schema that corresponds to the handler.
-
getComponent
- Specified by:
getComponent
in interfaceHandler
- Returns:
- The instance of the schema content that is currently being handled.
-
getValue
-
getParseNode
- Specified by:
getParseNode
in interfaceHandler
- Returns:
- The parse tree for the handler.
-
createChildHandler
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:
- The schema component being handled does not support children (for example, an attribute).
- A child with the specified qName could not be found.
- Specified by:
createChildHandler
in interfaceHandler
- Parameters:
qName
- The qualified name of the schema component.- Returns:
- A new handler, or null if one cannot be created.
-
startChildHandler
Description copied from interface:Handler
Called when a child handler is started, on the leading edge of the child element.- Specified by:
startChildHandler
in interfaceHandler
- Parameters:
child
- The executing child handler.
-
endChildHandler
Description copied from interface:Handler
Called when a child handler is finished, on the trailing edge of the child element.- Specified by:
endChildHandler
in interfaceHandler
- Parameters:
child
- The executing child handler.
-
getParentHandler
- Specified by:
getParentHandler
in interfaceHandler
- Returns:
- The parent handler.
- See Also:
-
Handler#getChildHandler(QName, SchemaBuilder)
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceDocumentHandler
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceDocumentHandler
-