|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationMetaService
A meta-Service
that processes a single Document
with a given
list of other Service
s.
Method Summary | |
---|---|
void |
annotate(Document document,
List<String> services)
Process the given Document with the given services. |
AnnotationType |
getAnnotationType(String service)
Returns the AnnotationType that corresponds to the given
service. |
Document |
process(URL url,
String fileType,
List<String> services)
Process the given URL of the given type, then
annotate the given services. |
Methods inherited from interface com.languagecomputer.api.Service |
---|
getName, setSession |
Method Detail |
---|
Document process(URL url, String fileType, List<String> services) throws IOException
URL
of the given type, then
annotate the given services.
url
- java.net.URL
of the file to process.fileType
- (Advanced Users) Optional file type to force.
Document
corresponding to the given
url.
IOException
- If there was a problem reading the URL
.void annotate(Document document, List<String> services)
Document
with the given services.
document
- Document
to process.services
- List
of services to run. In most cases, the
services should be run in the order specified, unless a re-order is
necessary for dependencies.AnnotationType getAnnotationType(String service)
AnnotationType
that corresponds to the given
service. Returns null
if the service is not
recognized.
service
- Name of the Service
.
AnnotationType
the given service is
responsible for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |