|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.DefaultAnnotationMetaService
public class DefaultAnnotationMetaService
Default implementation of the AnnotationMetaService
.
Constructor Summary | |
---|---|
DefaultAnnotationMetaService()
|
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. |
String |
getName()
Returns AnnotationMetaService . |
Document |
process(URL url,
String type,
List<String> services)
Process the given URL of the given type, then
annotate the given services. |
void |
setSession(Session session)
Sets the Session this Service instance is associated
with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAnnotationMetaService()
Method Detail |
---|
public String getName()
AnnotationMetaService
.
getName
in interface Service
public void setSession(Session session)
Session
this Service
instance is associated
with. Properties can be retrieved with Session.getProperties()
.
setSession
in interface Service
public Document process(URL url, String type, List<String> services) throws IOException
URL
of the given type, then
annotate the given services.
process
in interface AnnotationMetaService
url
- java.net.URL
of the file to process.type
- (Advanced Users) Optional file type to force.
Document
corresponding to the given
url.
IOException
- If there was a problem reading the URL
.public void annotate(Document document, List<String> services)
Document
with the given services.
annotate
in interface AnnotationMetaService
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.public AnnotationType getAnnotationType(String service)
AnnotationType
that corresponds to the given
service. Returns null
if the service is not
recognized.
getAnnotationType
in interface AnnotationMetaService
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 |