public static class GeoExtractor.GeoParser
extends java.lang.Object
implements org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
private Association |
association |
private java.lang.String |
latitude |
private java.lang.String |
location |
private java.lang.String |
longitude |
private GeoExtractor |
parent |
int |
progress |
static java.lang.String |
SI_PREFIX |
private int |
state |
private static int |
STATE_LATITUDE |
private static int |
STATE_LONGITUDE |
private static int |
STATE_OTHER |
private static int |
STATE_START |
private TopicMap |
tm |
| Constructor and Description |
|---|
GeoParser(TopicMap tm,
GeoExtractor parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] data,
int start,
int length) |
Topic |
createTopic(TopicMap topicMap,
java.lang.String si,
java.lang.String baseName) |
Topic |
createTopic(TopicMap topicMap,
java.lang.String si,
java.lang.String baseName,
Topic[] types) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
void |
error(org.xml.sax.SAXParseException exception) |
void |
fatalError(org.xml.sax.SAXParseException exception) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processCoordinates() |
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
skippedEntity(java.lang.String name) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
void |
warning(org.xml.sax.SAXParseException exception) |
private TopicMap tm
private GeoExtractor parent
public static final java.lang.String SI_PREFIX
public int progress
private static final int STATE_START
private static final int STATE_LATITUDE
private static final int STATE_LONGITUDE
private static final int STATE_OTHER
private int state
private java.lang.String latitude
private java.lang.String longitude
private java.lang.String location
private Association association
public GeoParser(TopicMap tm, GeoExtractor parent)
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic 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.ContentHandlerorg.xml.sax.SAXExceptionpublic void characters(char[] data,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void processCoordinates()
public Topic createTopic(TopicMap topicMap, java.lang.String si, java.lang.String baseName) throws TopicMapException
TopicMapExceptionpublic Topic createTopic(TopicMap topicMap, java.lang.String si, java.lang.String baseName, Topic[] types) throws TopicMapException
TopicMapExceptionCopyright 2004-2015 Wandora Team