public class XMLVersionParser extends XMLMetaDataParser
Modifier and Type | Field and Description |
---|---|
static String |
VERSION_1_0 |
static String |
VERSION_2_0 |
_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, startEntity
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public static final String VERSION_1_0
public static final String VERSION_2_0
public XMLVersionParser(String rootElement)
protected void endElement(String name) throws SAXException
XMLMetaDataParser
endElement
in class XMLMetaDataParser
SAXException
protected boolean startElement(String name, Attributes attrs) throws SAXException
XMLMetaDataParser
startElement
in class XMLMetaDataParser
SAXException
public String getVersion()
public String getSchemaLocation()
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.