public class AnnotationImpl extends Object implements Annotation, Serializable
Constructor and Description |
---|
AnnotationImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(String predicate,
String value) |
URI |
getAnnotates() |
URI |
getBody() |
String |
getBodyAsText() |
String |
getContext() |
String |
getCreator() |
Graph |
getGraph() |
String |
getId() |
List<Statement> |
getStatements() |
Resource |
getSubject() |
void |
setAnnotates(Statement statement) |
void |
setBody(Statement body) |
void |
setBodyText(String text) |
void |
setContext(Statement context) |
void |
setGraph(Graph graph) |
void |
setStatements(List<Statement> statements) |
void |
setSubject(Resource resource) |
public Graph getGraph()
public void setGraph(Graph graph)
public Resource getSubject()
getSubject
in interface Annotation
public void setBody(Statement body)
setBody
in interface Annotation
public URI getAnnotates() throws AnnotationException
getAnnotates
in interface Annotation
AnnotationException
public URI getBody() throws AnnotationException
getBody
in interface Annotation
AnnotationException
public String getBodyAsText()
getBodyAsText
in interface Annotation
public void setBodyText(String text)
setBodyText
in interface Annotation
public String getContext() throws AnnotationException
getContext
in interface Annotation
AnnotationException
public void setContext(Statement context)
setContext
in interface Annotation
public List<Statement> getStatements()
getStatements
in interface Annotation
public void setStatements(List<Statement> statements)
setStatements
in interface Annotation
public void setSubject(Resource resource)
setSubject
in interface Annotation
public void setAnnotates(Statement statement)
setAnnotates
in interface Annotation
public String getCreator()
getCreator
in interface Annotation
public void addMetadata(String predicate, String value)
addMetadata
in interface Annotation
public String getId()
getId
in interface Annotation
Copyright © 2013 Nuxeo SA. All Rights Reserved.