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 Annotationpublic void setBody(Statement body)
setBody in interface Annotationpublic URI getAnnotates() throws AnnotationException
getAnnotates in interface AnnotationAnnotationExceptionpublic URI getBody() throws AnnotationException
getBody in interface AnnotationAnnotationExceptionpublic String getBodyAsText()
getBodyAsText in interface Annotationpublic void setBodyText(String text)
setBodyText in interface Annotationpublic String getContext() throws AnnotationException
getContext in interface AnnotationAnnotationExceptionpublic void setContext(Statement context)
setContext in interface Annotationpublic List<Statement> getStatements()
getStatements in interface Annotationpublic void setStatements(List<Statement> statements)
setStatements in interface Annotationpublic void setSubject(Resource resource)
setSubject in interface Annotationpublic void setAnnotates(Statement statement)
setAnnotates in interface Annotationpublic String getCreator()
getCreator in interface Annotationpublic void addMetadata(String predicate, String value)
addMetadata in interface Annotationpublic String getId()
getId in interface AnnotationCopyright © 2013 Nuxeo SA. All Rights Reserved.