Package org.geotools.xsd.impl
Class ElementHandlerImpl
Object
HandlerImpl
ElementHandlerImpl
- All Implemented Interfaces:
ElementHandler,Handler
-
Constructor Summary
ConstructorsConstructorDescriptionElementHandlerImpl(XSDElementDeclaration content, Handler parent, ParserHandler parser) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Callback when characters of an element are encountered.createChildHandler(QName qName) Returns a handler for a component in the schema which is a child of this component.voidendChildHandler(Handler child) Called when a child handler is finished, on the trailing edge of the child element.voidendElement(QName qName) Callback on trailing edge of element.XSDElementDeclarationXSDSchemaContentgetValue()voidsetComponent(ElementImpl element) voidstartChildHandler(Handler child) Called when a child handler is started, on the leading edge of the child element.voidstartElement(QName qName, Attributes attributes) Callback on leading edge of an element.toString()Methods inherited from class HandlerImpl
endPrefixMapping, getContext, setContext, startPrefixMappingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Handler
endPrefixMapping, getContext, setContext, startPrefixMapping
-
Constructor Details
-
ElementHandlerImpl
-
-
Method Details
-
startElement
Description copied from interface:ElementHandlerCallback on leading edge of an element.- Specified by:
startElementin interfaceElementHandler- Parameters:
qName- The qualified name of the element being handled.attributes- The attributes of hte elmenent being handled.- Throws:
SAXException- Any xml errors that occur.- See Also:
-
characters
Description copied from interface:ElementHandlerCallback when characters of an element are encountered.- Specified by:
charactersin interfaceElementHandler- Parameters:
ch- Array containing characters.start- The starting index of the characters.length- The number of characters.- Throws:
SAXException- Any xml errors.- See Also:
-
endElement
Description copied from interface:ElementHandlerCallback on trailing edge of element.- Specified by:
endElementin interfaceElementHandler- Parameters:
qName- The qualified name of the element being handled.- Throws:
SAXException- Any xml errors.- See Also:
-
createChildHandler
Description copied from interface:HandlerReturns 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:
createChildHandlerin 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:HandlerCalled when a child handler is started, on the leading edge of the child element.- Specified by:
startChildHandlerin interfaceHandler- Parameters:
child- The executing child handler.
-
endChildHandler
Description copied from interface:HandlerCalled when a child handler is finished, on the trailing edge of the child element.- Specified by:
endChildHandlerin interfaceHandler- Parameters:
child- The executing child handler.
-
getParentHandler
- Specified by:
getParentHandlerin interfaceHandler- Returns:
- The parent handler.
- See Also:
-
Handler#getChildHandler(QName, SchemaBuilder)
-
getSchemaContent
public XSDSchemaContent getSchemaContent()- Specified by:
getSchemaContentin interfaceHandler- Returns:
- The entity of the schema that corresponds to the handler.
-
getParseNode
- Specified by:
getParseNodein interfaceHandler- Returns:
- The parse tree for the handler.
-
getElementDeclaration
public XSDElementDeclaration getElementDeclaration()- Specified by:
getElementDeclarationin interfaceElementHandler- Returns:
- The declaration of hte element being handled.
-
getComponent
- Specified by:
getComponentin interfaceHandler- Returns:
- The instance of the schema content that is currently being handled.
-
setComponent
-
getValue
-
toString
-