|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.coode.owlapi.owlxmlparser.OWLXMLParserHandler
public class OWLXMLParserHandler
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 13-Dec-2006
Constructor Summary | |
---|---|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology)
Creates an OWLXML handler. |
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLElementHandler topHandler)
Creates an OWLXML handler with the specified top level handler. |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
IRI |
getAbbreviatedIRI(java.lang.String abbreviatedIRI)
|
java.net.URI |
getBase()
Return the base URI for resolution of relative URIs |
int |
getColumnNumber()
|
OWLDataFactory |
getDataFactory()
|
IRI |
getIRI(java.lang.String iriStr)
|
int |
getLineNumber()
Gets the line number that the parser is at. |
OWLOntology |
getOntology()
|
OWLOntologyManager |
getOWLOntologyManager()
|
java.util.Map<java.lang.String,java.lang.String> |
getPrefixName2PrefixMap()
|
protected void |
processXMLBase(org.xml.sax.Attributes attributes)
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
startDocument()
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology)
owlOntologyManager
- The manager that should be used to obtain a data factory,
imported ontologies etc.ontology
- The ontology that the XML representation will be parsed into.public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology, OWLElementHandler topHandler)
owlOntologyManager
- The manager that should be used to obtain a data factory,
imported ontologies etc.ontology
- The ontology object that the XML representation should be parsed into.topHandler
- The handler for top level elements - may be null
, in which
case the parser will expect an Ontology element to be the root element.Method Detail |
---|
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public int getLineNumber()
public int getColumnNumber()
public IRI getIRI(java.lang.String iriStr) throws OWLParserException
OWLParserException
public IRI getAbbreviatedIRI(java.lang.String abbreviatedIRI) throws OWLParserException
OWLParserException
public java.util.Map<java.lang.String,java.lang.String> getPrefixName2PrefixMap()
public OWLOntology getOntology()
public OWLDataFactory getDataFactory()
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected void processXMLBase(org.xml.sax.Attributes attributes)
public java.net.URI getBase()
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
java.io.IOException
org.xml.sax.SAXException
public OWLOntologyManager getOWLOntologyManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |