Class ObjRelationshipHandler
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.ObjRelationshipHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Since:
- 4.1
-
Field Summary
FieldsFields inherited from class NamespaceAwareNestedTagHandler
allowAllNamespaces, targetNamespaceFields inherited from class SAXNestedTagHandler
loaderContext, locator, parentHandlerModifier and TypeFieldDescriptionprotected LoaderContextprotected Locatorprotected ContentHandler -
Constructor Summary
ConstructorsConstructorDescriptionObjRelationshipHandler(NamespaceAwareNestedTagHandler parentHandler, DataMap map) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprocessElement(String namespaceURI, String localName, Attributes attributes) Main method to process XML content.Methods inherited from class NamespaceAwareNestedTagHandler
characters, createChildTagHandler, endElement, processCharData, setAllowAllNamespaces, setTargetNamespace, startElementModifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) protected ContentHandlercreateChildTagHandler(String namespaceURI, String localName, String qName, Attributes attributes) This method should be used to create nested handlers to process children elements.voidendElement(String namespaceURI, String localName, String qName) protected booleanprocessCharData(String localName, String data) voidsetAllowAllNamespaces(boolean allowAllNamespaces) voidsetTargetNamespace(String targetNamespace) final voidstartElement(String namespaceURI, String localName, String qName, Attributes attributes) This method directly called by SAX parser, do not override it directly, useSAXNestedTagHandler.processElement(String, String, Attributes)method instead to process content.Methods inherited from class SAXNestedTagHandler
beforeScopeEnd, getParentHandler, setDocumentLocator, stop, unexpectedTagMessageModifier and TypeMethodDescriptionprotected voidCallback method that is called before this handler pushed out of parsers stack.voidsetDocumentLocator(Locator locator) protected voidstop()protected StringunexpectedTagMessage(String tagFound, String... tagsExpected) Methods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
OBJ_RELATIONSHIP_TAG
- See Also:
-
DB_RELATIONSHIP_REF_TAG
-
-
Constructor Details
-
ObjRelationshipHandler
-
-
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:
-
getObjRelationship
-