public abstract class VersionAwareHandler extends NamespaceAwareNestedTagHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
rootTag |
allowAllNamespaces, targetNamespaceloaderContext, locator, parentHandler| Constructor and Description |
|---|
VersionAwareHandler(LoaderContext loaderContext,
String rootTag) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
processElement(String namespaceURI,
String localName,
Attributes attributes)
Main method to process XML content.
|
protected void |
validateNamespace(String realNamespace) |
protected void |
validateVersion(Attributes attributes) |
characters, createChildTagHandler, endElement, processCharData, setAllowAllNamespaces, setTargetNamespace, startElementbeforeScopeEnd, getParentHandler, setDocumentLocator, stop, unexpectedTagMessageendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected String rootTag
public VersionAwareHandler(LoaderContext loaderContext, String rootTag)
protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException
SAXNestedTagHandlerprocessElement in class NamespaceAwareNestedTagHandlernamespaceURI - namespace for taglocalName - tag local name (i.e. w/o namespace prefix)attributes - tag attributesSAXException - can be thrown to abort parsingSAXNestedTagHandler.createChildTagHandler(String, String, String, Attributes)protected void validateVersion(Attributes attributes)
protected void validateNamespace(String realNamespace)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.