private static class GeoNamesCountryInfo.CountryInfoParser
extends java.lang.Object
implements org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
data_areainsqkm |
private java.lang.String |
data_bboxeast |
private java.lang.String |
data_bboxnorth |
private java.lang.String |
data_bboxsouth |
private java.lang.String |
data_bboxwest |
private java.lang.String |
data_capital |
private java.lang.String |
data_continent |
private java.lang.String |
data_countrycode |
private java.lang.String |
data_countryname |
private java.lang.String |
data_currencycode |
private java.lang.String |
data_fipscode |
private java.lang.String |
data_geonameid |
private java.lang.String |
data_isoalpha3 |
private java.lang.String |
data_isonumeric |
private java.lang.String |
data_languages |
private java.lang.String |
data_population |
private java.lang.String |
lang |
private GeoNamesCountryInfo |
parent |
int |
progress |
private int |
state |
private static int |
STATE_COUNTRY |
private static int |
STATE_COUNTRY_AREAINSQKM |
private static int |
STATE_COUNTRY_BBOXEAST |
private static int |
STATE_COUNTRY_BBOXNORTH |
private static int |
STATE_COUNTRY_BBOXSOUTH |
private static int |
STATE_COUNTRY_BBOXWEST |
private static int |
STATE_COUNTRY_CAPITAL |
private static int |
STATE_COUNTRY_CONTINENT |
private static int |
STATE_COUNTRY_COUNTRYCODE |
private static int |
STATE_COUNTRY_COUNTRYNAME |
private static int |
STATE_COUNTRY_CURRENCYCODE |
private static int |
STATE_COUNTRY_FIPSCODE |
private static int |
STATE_COUNTRY_GEONAMEID |
private static int |
STATE_COUNTRY_ISOALPHA3 |
private static int |
STATE_COUNTRY_ISONUMERIC |
private static int |
STATE_COUNTRY_LANGUAGES |
private static int |
STATE_COUNTRY_POPULATION |
private static int |
STATE_GEONAMES |
private static int |
STATE_GEONAMES_STATUS |
private static int |
STATE_START |
static java.lang.String |
TAG_AREAINSQKM |
static java.lang.String |
TAG_BBOXEAST |
static java.lang.String |
TAG_BBOXNORTH |
static java.lang.String |
TAG_BBOXSOUTH |
static java.lang.String |
TAG_BBOXWEST |
static java.lang.String |
TAG_CAPITAL |
static java.lang.String |
TAG_CONTINENT |
static java.lang.String |
TAG_COUNTRY |
static java.lang.String |
TAG_COUNTRYCODE |
static java.lang.String |
TAG_COUNTRYNAME |
static java.lang.String |
TAG_CURRENCYCODE |
static java.lang.String |
TAG_FIPSCODE |
static java.lang.String |
TAG_GEONAMEID |
static java.lang.String |
TAG_GEONAMES |
static java.lang.String |
TAG_ISOALPHA3 |
static java.lang.String |
TAG_ISONUMERIC |
static java.lang.String |
TAG_LANGUAGES |
static java.lang.String |
TAG_POPULATION |
static java.lang.String |
TAG_STATUS |
private Topic |
theCountry |
private TopicMap |
tm |
Constructor and Description |
---|
CountryInfoParser(TopicMap tm,
GeoNamesCountryInfo parent,
java.lang.String lang) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
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) |
boolean |
isValid(java.lang.String str) |
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 java.lang.String lang
public int progress
private TopicMap tm
private GeoNamesCountryInfo parent
public static final java.lang.String TAG_GEONAMES
public static final java.lang.String TAG_STATUS
public static final java.lang.String TAG_COUNTRY
public static final java.lang.String TAG_COUNTRYCODE
public static final java.lang.String TAG_COUNTRYNAME
public static final java.lang.String TAG_ISONUMERIC
public static final java.lang.String TAG_ISOALPHA3
public static final java.lang.String TAG_FIPSCODE
public static final java.lang.String TAG_CONTINENT
public static final java.lang.String TAG_CAPITAL
public static final java.lang.String TAG_AREAINSQKM
public static final java.lang.String TAG_POPULATION
public static final java.lang.String TAG_CURRENCYCODE
public static final java.lang.String TAG_LANGUAGES
public static final java.lang.String TAG_GEONAMEID
public static final java.lang.String TAG_BBOXWEST
public static final java.lang.String TAG_BBOXNORTH
public static final java.lang.String TAG_BBOXEAST
public static final java.lang.String TAG_BBOXSOUTH
private static final int STATE_START
private static final int STATE_GEONAMES
private static final int STATE_GEONAMES_STATUS
private static final int STATE_COUNTRY
private static final int STATE_COUNTRY_COUNTRYCODE
private static final int STATE_COUNTRY_COUNTRYNAME
private static final int STATE_COUNTRY_ISONUMERIC
private static final int STATE_COUNTRY_ISOALPHA3
private static final int STATE_COUNTRY_FIPSCODE
private static final int STATE_COUNTRY_CONTINENT
private static final int STATE_COUNTRY_CAPITAL
private static final int STATE_COUNTRY_AREAINSQKM
private static final int STATE_COUNTRY_POPULATION
private static final int STATE_COUNTRY_CURRENCYCODE
private static final int STATE_COUNTRY_LANGUAGES
private static final int STATE_COUNTRY_GEONAMEID
private static final int STATE_COUNTRY_BBOXWEST
private static final int STATE_COUNTRY_BBOXNORTH
private static final int STATE_COUNTRY_BBOXEAST
private static final int STATE_COUNTRY_BBOXSOUTH
private int state
private java.lang.String data_countrycode
private java.lang.String data_countryname
private java.lang.String data_isonumeric
private java.lang.String data_isoalpha3
private java.lang.String data_fipscode
private java.lang.String data_continent
private java.lang.String data_capital
private java.lang.String data_areainsqkm
private java.lang.String data_population
private java.lang.String data_currencycode
private java.lang.String data_languages
private java.lang.String data_geonameid
private java.lang.String data_bboxwest
private java.lang.String data_bboxnorth
private java.lang.String data_bboxeast
private java.lang.String data_bboxsouth
private Topic theCountry
public CountryInfoParser(TopicMap tm, GeoNamesCountryInfo parent, java.lang.String lang)
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public 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.ContentHandler
org.xml.sax.SAXException
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
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
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
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
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public boolean isValid(java.lang.String str)
Copyright 2004-2015 Wandora Team