net.ontopia.topicmaps.utils.xfml
Class XFMLContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.ontopia.topicmaps.xml.AbstractTopicMapContentHandler
net.ontopia.topicmaps.utils.xfml.XFMLContentHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class XFMLContentHandler
- extends AbstractTopicMapContentHandler
INTERNAL: SAX2 content handler used for importing XFML documents.
The content handler builds a topic map object based on a SAX event
stream conforming to the XFML interchange syntax.
Method Summary |
protected void |
addItemIdentifier(TopicIF topic,
LocatorIF locator)
|
protected void |
addSubjectIdentifier(TopicIF topic,
LocatorIF locator)
|
void |
characters(char[] ch,
int start,
int length)
|
protected LocatorIF |
createLocator(java.lang.String address)
|
protected LocatorIF |
createURILocator(java.lang.String address)
|
void |
endDocument()
|
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
|
protected LocatorIF |
getBaseAddress()
|
TopicMapIF |
getTopicMap()
INTERNAL: Gets the topic map found after having parsed the input source. |
protected void |
registerSourceLocator(TMObjectIF tmobject,
java.lang.String id)
|
protected void |
registerSourceLocator(TopicIF tmobject,
java.lang.String id)
|
protected TopicIF |
resolveTopicRef(java.lang.String address)
|
void |
startDocument()
|
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stores
protected TopicMapStoreFactoryIF stores
xrfactory
protected XMLReaderFactoryIF xrfactory
map_uri
protected LocatorIF map_uri
XFMLContentHandler
public XFMLContentHandler(TopicMapStoreFactoryIF stores,
XMLReaderFactoryIF xrfactory,
LocatorIF base_address)
XFMLContentHandler
public XFMLContentHandler(TopicMapStoreFactoryIF stores,
XMLReaderFactoryIF xrfactory,
LocatorIF base_address,
java.util.Collection processed_documents)
getTopicMap
public TopicMapIF getTopicMap()
- INTERNAL: Gets the topic map found after having parsed the input source.
startDocument
public void startDocument()
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
endDocument
public void endDocument()
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
endElement
public void endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
getBaseAddress
protected LocatorIF getBaseAddress()
resolveTopicRef
protected TopicIF resolveTopicRef(java.lang.String address)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
registerSourceLocator
protected void registerSourceLocator(TopicIF tmobject,
java.lang.String id)
registerSourceLocator
protected void registerSourceLocator(TMObjectIF tmobject,
java.lang.String id)
addItemIdentifier
protected void addItemIdentifier(TopicIF topic,
LocatorIF locator)
addSubjectIdentifier
protected void addSubjectIdentifier(TopicIF topic,
LocatorIF locator)
createLocator
protected LocatorIF createLocator(java.lang.String address)
createURILocator
protected LocatorIF createURILocator(java.lang.String address)
Copyright © 2000-2012 Ontopia.