public abstract class VersionAwareHandler extends NamespaceAwareNestedTagHandler
Modifier and Type | Field and Description |
---|---|
protected String |
rootTag |
allowAllNamespaces, targetNamespace
loaderContext, 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,
String[] supportedVersions) |
characters, createChildTagHandler, endElement, processCharData, setAllowAllNamespaces, setTargetNamespace, startElement
beforeScopeEnd, getParentHandler, setDocumentLocator, stop, unexpectedTagMessage
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected String rootTag
public VersionAwareHandler(LoaderContext loaderContext, String rootTag)
protected boolean processElement(String namespaceURI, String localName, Attributes attributes) throws SAXException
SAXNestedTagHandler
processElement
in class NamespaceAwareNestedTagHandler
namespaceURI
- 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, String[] supportedVersions)
protected void validateNamespace(String realNamespace)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.