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 AnnotationImpl()
public Resource getSubject()
getSubject
in interface Annotation
public void setBody(Statement body)
setBody
in interface Annotation
public URI getAnnotates()
getAnnotates
in interface Annotation
public URI getBody()
getBody
in interface Annotation
public String getBodyAsText()
getBodyAsText
in interface Annotation
public void setBodyText(String text)
setBodyText
in interface Annotation
public String getContext()
getContext
in interface Annotation
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 © 2016 Nuxeo SA. All rights reserved.