public class OpenCalaisClassifier.OpenCalaisSimpleResultParser
extends java.lang.Object
implements org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
attribute_count |
private java.lang.String |
attribute_relevance |
private java.lang.String |
data_about |
private java.lang.String |
data_allowdistribution |
private java.lang.String |
data_allowsearch |
private java.lang.String |
data_calaissessionid |
private java.lang.String |
data_externalid |
private java.lang.String |
data_id |
private java.lang.String |
data_topic |
private java.lang.String |
data_topicScore |
private java.lang.String |
data_topicTaxonomy |
(package private) Topic |
masterTopic |
private OpenCalaisClassifier |
parent |
int |
progress |
private int |
state |
private static int |
STATE_OPENCALAISSIMPLE |
private static int |
STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT |
private static int |
STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT_TAG |
private static int |
STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT_TOPICS |
private static int |
STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT_TOPICS_TOPIC |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION_ABOUT |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION_ALLOWDISTRIBUTION |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION_ALLOWSEARCH |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION_CALAISSESSIONID |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION_EXTERNALID |
private static int |
STATE_OPENCALAISSIMPLE_DESCRIPTION_ID |
private static int |
STATE_START |
private java.lang.String |
tag |
static java.lang.String |
TAG_ABOUT |
static java.lang.String |
TAG_ALLOWDISTRIBUTION |
static java.lang.String |
TAG_ALLOWSEARCH |
static java.lang.String |
TAG_CALAISSESSIONID |
static java.lang.String |
TAG_CALAISSIMPLEOUTPUTFORMAT |
static java.lang.String |
TAG_DESCRIPTION |
static java.lang.String |
TAG_EXTERNALID |
static java.lang.String |
TAG_ID |
static java.lang.String |
TAG_OPENCALAISSIMPLE |
static java.lang.String |
TAG_TOPIC |
static java.lang.String |
TAG_TOPICS |
private java.lang.String |
tagValue |
private TopicMap |
tm |
| Constructor and Description |
|---|
OpenCalaisSimpleResultParser(java.lang.String term,
java.lang.String text,
TopicMap tm,
OpenCalaisClassifier parent) |
OpenCalaisSimpleResultParser(Topic t,
TopicMap tm,
OpenCalaisClassifier parent) |
| 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) |
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) |
Topic masterTopic
public int progress
private TopicMap tm
private OpenCalaisClassifier parent
public static final java.lang.String TAG_OPENCALAISSIMPLE
public static final java.lang.String TAG_DESCRIPTION
public static final java.lang.String TAG_CALAISSESSIONID
public static final java.lang.String TAG_ALLOWDISTRIBUTION
public static final java.lang.String TAG_ALLOWSEARCH
public static final java.lang.String TAG_EXTERNALID
public static final java.lang.String TAG_ID
public static final java.lang.String TAG_ABOUT
public static final java.lang.String TAG_CALAISSIMPLEOUTPUTFORMAT
public static final java.lang.String TAG_TOPICS
public static final java.lang.String TAG_TOPIC
private static final int STATE_START
private static final int STATE_OPENCALAISSIMPLE
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION_CALAISSESSIONID
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION_ALLOWDISTRIBUTION
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION_ALLOWSEARCH
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION_EXTERNALID
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION_ID
private static final int STATE_OPENCALAISSIMPLE_DESCRIPTION_ABOUT
private static final int STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT
private static final int STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT_TAG
private static final int STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT_TOPICS
private static final int STATE_OPENCALAISSIMPLE_CALAISSIMPLEOUTPUTFORMAT_TOPICS_TOPIC
private int state
private java.lang.String data_calaissessionid
private java.lang.String data_allowdistribution
private java.lang.String data_allowsearch
private java.lang.String data_externalid
private java.lang.String data_id
private java.lang.String data_about
private java.lang.String data_topic
private java.lang.String data_topicScore
private java.lang.String data_topicTaxonomy
private java.lang.String attribute_count
private java.lang.String attribute_relevance
private java.lang.String tag
private java.lang.String tagValue
public OpenCalaisSimpleResultParser(Topic t, TopicMap tm, OpenCalaisClassifier parent)
public OpenCalaisSimpleResultParser(java.lang.String term,
java.lang.String text,
TopicMap tm,
OpenCalaisClassifier 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[] ch,
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.SAXExceptionCopyright 2004-2015 Wandora Team