Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.annotations.api
Class AnnotationImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.annotations.api.AnnotationImpl
All Implemented Interfaces:
Serializable, Annotation

public class AnnotationImpl
extends Object
implements Annotation, Serializable

See Also:
Serialized Form

Constructor Summary
AnnotationImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationImpl

public AnnotationImpl()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.