moj.lang.statserv
Class StatServRequest
java.lang.Object
moj.lang.statserv.StatServRequest
- Direct Known Subclasses:
- LemmaTagRequest, WordTagRequest
public abstract class StatServRequest
- extends java.lang.Object
StatServRequest in an abstract class that stipulates what fields and methods
a StatServ request module at least should supply and implement.
- Version:
- 2006-Dec-13
- Author:
- Martin Hassel
Method Summary |
abstract boolean |
parse(java.io.Reader xmlReader)
Parses the XML passed via the Reader and fills the modules
data structures. |
abstract java.lang.String |
requestXML()
Returns the XML that constitutes the modules part in a
StatServConnection request. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
docset
public final java.lang.String docset
classname
public final java.lang.String classname
localstats
public final boolean localstats
referencestats
public final boolean referencestats
addstats
public final boolean addstats
requestXML
public abstract java.lang.String requestXML()
- Returns the XML that constitutes the modules part in a
StatServConnection
request.
- Returns:
- XML representing the modules part in a request
parse
public abstract boolean parse(java.io.Reader xmlReader)
- Parses the XML passed via the
Reader
and fills the modules
data structures.
- Parameters:
xmlReader
- Reader
wrapping the XML response from a
StatServConnection
request.
- Returns:
true
on success, else false