|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.reader.ReaderResult
public class ReaderResult
The result of parsing a document with a reader. This makes the parsed metadata available. It also includes some basic error checking.
Nested Class Summary | |
---|---|
static class |
ReaderResult.Error
|
Field Summary | |
---|---|
private ParsedAuthors |
authors
|
private java.lang.String |
contents
|
private ParsedDate |
date
|
private java.lang.String |
link
|
private java.lang.String |
location
|
private java.lang.String |
source
|
private java.lang.String |
title
|
Constructor Summary | |
---|---|
ReaderResult()
|
|
ReaderResult(ReaderResult result)
|
Method Summary | |
---|---|
ParsedAuthors |
getAuthors()
Gets the authors. |
java.lang.String |
getContents()
Gets the contents of the document. |
ParsedDate |
getDate()
Gets the parsed Date. |
java.lang.String |
getLink()
Gets an additional link provided by the document (if available). |
java.lang.String |
getLocation()
Gets the location (e.g. |
java.lang.String |
getSource()
Gets the source of the document (e.g. |
java.lang.String |
getTitle()
Gets the title. |
ReaderResult.Error |
isValid()
Checks whether this ReaderResult is valid. |
ReaderResult.Error |
process(DocumentMetaData data,
org.apache.uima.jcas.JCas cas)
Fills in the DocumentMetaData from the results using the specified cas. |
void |
setAuthors(ParsedAuthors authors)
|
void |
setContents(java.lang.String contents)
|
void |
setDate(ParsedDate date)
|
void |
setLink(java.lang.String link)
|
void |
setLocation(java.lang.String location)
|
void |
setSource(java.lang.String source)
|
void |
setTitle(java.lang.String title)
|
java.lang.String |
toString()
Gets a formatted String representation of this ReaderResult. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private ParsedDate date
private ParsedAuthors authors
private java.lang.String title
private java.lang.String location
private java.lang.String link
private java.lang.String source
private java.lang.String contents
Constructor Detail |
---|
public ReaderResult()
public ReaderResult(ReaderResult result)
Method Detail |
---|
public ParsedDate getDate()
public java.lang.String toString()
toString
in class java.lang.Object
public void setDate(ParsedDate date)
public ParsedAuthors getAuthors()
public void setAuthors(ParsedAuthors authors)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public java.lang.String getLink()
public void setLink(java.lang.String link)
public java.lang.String getSource()
public void setSource(java.lang.String source)
public void setContents(java.lang.String contents)
public java.lang.String getContents()
public ReaderResult.Error process(DocumentMetaData data, org.apache.uima.jcas.JCas cas)
data
- the DocumentMetaData to fill in.cas
- the cas to use
public ReaderResult.Error isValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |