|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.weblab.core.annotator.AbstractAnnotator
public abstract class AbstractAnnotator
Nested Class Summary | |
---|---|
static class |
AbstractAnnotator.Operator
|
Field Summary | |
---|---|
protected PieceOfKnowledge |
annotation
The Pok on which we will write and read statements |
protected boolean |
isInnerAnnotatorStarted
State of the inner Annotator |
protected java.net.URI |
originalURI
The original URI from the constructor (either subject or Resource's uri) |
protected Resource |
resource
The WebLab Resource that will be annotated. |
protected java.net.URI |
subjectURI
The suject URI that will be used when writing/reading a statement. |
Constructor Summary | |
---|---|
protected |
AbstractAnnotator(Resource resource)
Creates an annotator on the Resource. |
protected |
AbstractAnnotator(java.net.URI subject,
PieceOfKnowledge pok)
Creates an annotator for an URI. |
Method Summary | ||
---|---|---|
|
applyOperator(AbstractAnnotator.Operator operator,
java.lang.String rdfsPrefix,
java.net.URI rdfsUri,
java.lang.String property,
java.lang.Class<T> clazz,
T val)
|
|
void |
endInnerAnnotator()
End a inner annotator, the subject will be reseted to the first one (retrieved when the Annotator has been constructed). |
|
void |
endSpecifyLanguage()
End the support for specific language |
|
boolean |
isAppendMode()
Return the writing mode of the annotator: if the annotator is in append mode, it will add annotations else the annotator will override existing annotations |
|
protected void |
retrieveAnnotation()
|
|
void |
setAppendMode(boolean append)
Set the writing mode of the annotator |
|
void |
startInnerAnnotatorOn(java.net.URI subject)
Start a inner annotator on a different subject. |
|
void |
startSpecifyLanguage(java.lang.String language)
Start to support a specific language defined annotation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PieceOfKnowledge annotation
protected Resource resource
AbstractAnnotator(URI, PieceOfKnowledge)
protected java.net.URI subjectURI
protected boolean isInnerAnnotatorStarted
protected java.net.URI originalURI
Constructor Detail |
---|
protected AbstractAnnotator(Resource resource)
resource
- the resource to wrap.protected AbstractAnnotator(java.net.URI subject, PieceOfKnowledge pok)
subject
- the subject of interestpok
- the PieceOfKnowledge on which we manage information about the subjectMethod Detail |
---|
public void startInnerAnnotatorOn(java.net.URI subject)
subject
- public void endInnerAnnotator()
public boolean isAppendMode()
public void setAppendMode(boolean append)
append
- true if the annotator will add annotations or false if the annotator will override existing annotationspublic void startSpecifyLanguage(java.lang.String language)
language
- public void endSpecifyLanguage()
protected void retrieveAnnotation()
public <T> Value<T> applyOperator(AbstractAnnotator.Operator operator, java.lang.String rdfsPrefix, java.net.URI rdfsUri, java.lang.String property, java.lang.Class<T> clazz, T val)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |