org.nuxeo.ecm.platform.annotations.api
Class AnnotationImpl
java.lang.Object
org.nuxeo.ecm.platform.annotations.api.AnnotationImpl
- All Implemented Interfaces:
- Serializable, Annotation
public class AnnotationImpl
- extends Object
- implements Annotation, Serializable
- See Also:
- Serialized Form
AnnotationImpl
public AnnotationImpl()
getGraph
public Graph getGraph()
setGraph
public void setGraph(Graph graph)
getSubject
public Resource getSubject()
- Specified by:
getSubject
in interface Annotation
setBody
public void setBody(Statement body)
- Specified by:
setBody
in interface Annotation
getAnnotates
public URI getAnnotates()
throws AnnotationException
- Specified by:
getAnnotates
in interface Annotation
- Throws:
AnnotationException
getBody
public URI getBody()
throws AnnotationException
- Specified by:
getBody
in interface Annotation
- Throws:
AnnotationException
getBodyAsText
public String getBodyAsText()
- Specified by:
getBodyAsText
in interface Annotation
setBodyText
public void setBodyText(String text)
- Specified by:
setBodyText
in interface Annotation
getContext
public String getContext()
throws AnnotationException
- Specified by:
getContext
in interface Annotation
- Throws:
AnnotationException
setContext
public void setContext(Statement context)
- Specified by:
setContext
in interface Annotation
getStatements
public List<Statement> getStatements()
- Specified by:
getStatements
in interface Annotation
setStatements
public void setStatements(List<Statement> statements)
- Specified by:
setStatements
in interface Annotation
setSubject
public void setSubject(Resource resource)
- Specified by:
setSubject
in interface Annotation
setAnnotates
public void setAnnotates(Statement statement)
- Specified by:
setAnnotates
in interface Annotation
getCreator
public String getCreator()
- Specified by:
getCreator
in interface Annotation
addMetadata
public void addMetadata(String predicate,
String value)
- Specified by:
addMetadata
in interface Annotation
getId
public String getId()
- Specified by:
getId
in interface Annotation
Copyright © 2011 Nuxeo SAS. All Rights Reserved.