Class QueryDescriptorHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.cayenne.configuration.xml.SAXNestedTagHandler
org.apache.cayenne.configuration.xml.NamespaceAwareNestedTagHandler
org.apache.cayenne.configuration.xml.QueryDescriptorHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Since:
- 4.1
-
Field Summary
FieldsFields inherited from class org.apache.cayenne.configuration.xml.NamespaceAwareNestedTagHandler
allowAllNamespaces, targetNamespaceFields inherited from class org.apache.cayenne.configuration.xml.SAXNestedTagHandler
loaderContext, locator, parentHandler -
Constructor Summary
ConstructorsConstructorDescriptionQueryDescriptorHandler(NamespaceAwareNestedTagHandler parentHandler, DataMap map) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCallback method that is called before this handler pushed out of parsers stack.protected booleanprocessCharData(String localName, String data) protected booleanprocessElement(String namespaceURI, String localName, Attributes attributes) Main method to process XML content.Methods inherited from class org.apache.cayenne.configuration.xml.NamespaceAwareNestedTagHandler
characters, createChildTagHandler, endElement, setAllowAllNamespaces, setTargetNamespace, startElementMethods inherited from class org.apache.cayenne.configuration.xml.SAXNestedTagHandler
getParentHandler, setDocumentLocator, stop, unexpectedTagMessageMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
PROPERTY_TAG
- See Also:
-
-
Constructor Details
-
QueryDescriptorHandler
-
-
Method Details
-
processElement
protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException Description copied from class:SAXNestedTagHandlerMain method to process XML content. Should be override in subclasses, by default do nothing. Return value should be true if tag was fully processed and shouldn't be passed down to child handler.- Specified by:
processElementin classNamespaceAwareNestedTagHandler- Parameters:
namespaceURI- namespace for taglocalName- tag local name (i.e. w/o namespace prefix)attributes- tag attributes- Returns:
- true if tag was processed
- Throws:
SAXException- can be thrown to abort parsing- See Also:
-
processCharData
- Overrides:
processCharDatain classNamespaceAwareNestedTagHandler
-
beforeScopeEnd
protected void beforeScopeEnd()Description copied from class:SAXNestedTagHandlerCallback method that is called before this handler pushed out of parsers stack. Can be used to flush some aggregate state.- Overrides:
beforeScopeEndin classSAXNestedTagHandler
-
getQueryDescriptor
-