public class XMLVersionParser extends XMLMetaDataParser
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION_1_0 |
static String |
VERSION_2_0 |
static String |
VERSION_2_1 |
static String |
VERSION_2_2 |
_extendedNamespace, _openjpaNamespace| Constructor and Description |
|---|
XMLVersionParser(String rootElement) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endElement(String name)
Override this method marking the end of some element.
|
String |
getSchemaLocation()
Get the string value of the schema location attribute on the root element
|
String |
getVersion()
Get the string value of the version attribute on the root element
|
protected boolean |
startElement(String name,
Attributes attrs)
Override this method marking the start of some element.
|
addComments, addResult, characters, clear, clearDeferredMetaData, comment, currentClassLoader, currentComments, currentDepth, currentLocation, currentText, endCDATA, endDTD, endElement, endEntity, error, fatalError, finish, getClassLoader, getDocType, getException, getException, getException, getLexicalHandler, getLocation, getLog, getOverrideContextClassloader, getParseComments, getParseText, getResults, getSchemaSource, getSourceFile, getSourceIsSystemId, getSourceName, getSuffix, ignoreContent, isCaching, isParsing, isValidating, parse, parse, parse, parse, parse, parse, parsed, parseNewResource, reset, setCaching, setClassLoader, setDocumentLocator, setLexicalHandler, setLocation, setLog, setOverrideContextClassloader, setParseComments, setParseText, setParsing, setSourceIsSystemId, setSuffix, setValidating, startCDATA, startDTD, startElement, startEntityendDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static final String VERSION_1_0
public static final String VERSION_2_0
public static final String VERSION_2_1
public static final String VERSION_2_2
public XMLVersionParser(String rootElement)
protected void endElement(String name) throws SAXException
XMLMetaDataParserendElement in class XMLMetaDataParserSAXExceptionprotected boolean startElement(String name, Attributes attrs) throws SAXException
XMLMetaDataParserstartElement in class XMLMetaDataParserSAXExceptionpublic String getVersion()
public String getSchemaLocation()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.