org.nuxeo.ecm.platform.annotations.api
Class AnnotationImpl
java.lang.Object
org.nuxeo.ecm.platform.annotations.api.AnnotationImpl
- All Implemented Interfaces:
- java.io.Serializable, Annotation
public class AnnotationImpl
- extends java.lang.Object
- implements Annotation, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 java.net.URI getAnnotates()
throws AnnotationException
- Specified by:
getAnnotates
in interface Annotation
- Throws:
AnnotationException
getBody
public java.net.URI getBody()
throws AnnotationException
- Specified by:
getBody
in interface Annotation
- Throws:
AnnotationException
getBodyAsText
public java.lang.String getBodyAsText()
- Specified by:
getBodyAsText
in interface Annotation
getContext
public java.lang.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 java.util.List<Statement> getStatements()
- Specified by:
getStatements
in interface Annotation
setStatements
public void setStatements(java.util.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 java.lang.String getCreator()
- Specified by:
getCreator
in interface Annotation
addMetadata
public void addMetadata(java.lang.String predicate,
java.lang.String value)
- Specified by:
addMetadata
in interface Annotation
getId
public java.lang.String getId()
- Specified by:
getId
in interface Annotation
Copyright © 2010 Nuxeo SAS. All Rights Reserved.