public interface Annotation extends CreationProvenance
GET_CONNECTION, GET_RESOURCE| Modifier and Type | Method and Description |
|---|---|
void |
addAudience(Audience audience)
Adds a single Audience object to the set of Audiences.
|
void |
addBody(Body body)
Adds a http:www.w3.org/ns/oa#hasBody relationship.
|
void |
addBodyText(String text)
Refers to http://www.w3.org/ns/oa#bodyText
|
void |
addMotivation(Motivation motivation)
Add a single http:www.w3.org/ns/oa#motivatedBy relationship.
|
void |
addTarget(Target target)
Adds a http:www.w3.org/ns/oa#hasTarget relationship.
|
String |
getAnnotatedAt()
Deprecated.
|
Agent |
getAnnotatedBy()
Deprecated.
|
Set<Audience> |
getAudiences()
Gets the set of values for the http://schema.org/audience relationship.
|
Set<Body> |
getBodies()
Gets http:www.w3.org/ns/oa#hasBody relationship.
|
Set<String> |
getBodyTexts()
Refers to http://www.w3.org/ns/oa#bodyText
|
String |
getGenerated()
Gets the value of the http://purl.org/dc/terms/issued property.
|
Agent |
getGenerator()
Gets the value of the http://www.w3.org/ns/activitystreams#generator relationship.
|
Set<Motivation> |
getMotivatedBy()
Gets http:www.w3.org/ns/oa#motivatedBy relationship.
|
String |
getSerializedAt()
Deprecated.
|
Agent |
getSerializedBy()
Deprecated.
|
Style |
getStyledBy()
Gets the value currently set for the http://www.w3.org/ns/oa#styledBy relationship.
|
Set<Target> |
getTargets()
Gets http:www.w3.org/ns/oa#hasTarget relationships.
|
void |
setAnnotatedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
Deprecated.
|
void |
setAnnotatedAt(String annotatedAt)
Deprecated.
|
void |
setAnnotatedBy(Agent annotatedBy)
Deprecated.
|
void |
setAudiences(Set<Audience> audiences)
Sets the set of values for the http://schema.org/audience relationship.
|
void |
setBodies(Set<Body> body)
Sets http:www.w3.org/ns/oa#hasBody.
|
void |
setBodyTexts(Set<String> texts)
Refers to http://www.w3.org/ns/oa#bodyText
|
void |
setGenerated(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
Sets the value of the http://purl.org/dc/terms/issued property.
|
void |
setGenerated(String generated)
Sets the value of the http://purl.org/dc/terms/issued property.
|
void |
setGenerator(Agent generator)
Sets the value of the http://www.w3.org/ns/activitystreams#generator relationship.
|
void |
setMotivatedBy(Set<Motivation> motivatedBy)
Sets http:www.w3.org/ns/oa#motivatedBy.
|
void |
setSerializedAt(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
Deprecated.
|
void |
setSerializedAt(String serializedAt)
Deprecated.
|
void |
setSerializedBy(Agent serializedBy)
Deprecated.
|
void |
setStyledBy(Style stylesheet)
Sets the value for the http://www.w3.org/ns/oa#styledBy relationship.
|
void |
setTargets(Set<Target> targets)
Sets http:www.w3.org/ns/oa#hasTarget.
|
addRight, addVia, getCanonical, getCreated, getCreator, getModified, getRights, getVia, setCanonical, setCreated, setCreated, setCreator, setModified, setModified, setRights, setViadelete, getResourceAsString, getTriples, setResource, setResourceAsStringgetObjectConnection, getResourceSet<Body> getBodies()
void setBodies(Set<Body> body)
body - New value of http:www.w3.org/ns/oa#hasBody.void addBody(Body body)
body - New http:www.w3.org/ns/oa#hasBody relationship.Set<Target> getTargets()
void setTargets(Set<Target> targets)
targets - New value of http:www.w3.org/ns/oa#hasTarget.void addTarget(Target target)
target - New http:www.w3.org/ns/oa#hasTarget relationship.Set<Motivation> getMotivatedBy()
void setMotivatedBy(Set<Motivation> motivatedBy)
motivatedBy - New value of http:www.w3.org/ns/oa#motivatedBy.void addMotivation(Motivation motivation)
motivation - The Motivation to add to this Annotation node.Set<String> getBodyTexts()
void setBodyTexts(Set<String> texts)
texts - A Set of Strings to set for this nodes bodyText property.void addBodyText(String text)
text - Adds the single text as textBody property.Agent getGenerator()
void setGenerator(Agent generator)
generator - The Agent to set for the as:generator relationship.String getGenerated()
void setGenerated(String generated)
generated - The timestamp value to set for the dcterms:issued property.void setGenerated(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
String timezoneID)
year - The year to set.month - The month to set.day - The day to set.hours - The hours to set.minutes - The minutes to set.seconds - The seconds to set.timezoneID - The timezone to set.@Deprecated Agent getSerializedBy()
@Deprecated void setSerializedBy(Agent serializedBy)
serializedBy - New value of http:www.w3.org/ns/oa#serializedBy.@Deprecated Agent getAnnotatedBy()
@Deprecated void setAnnotatedBy(Agent annotatedBy)
annotatedBy - New value of http:www.w3.org/ns/oa#annotatedBy.@Deprecated String getSerializedAt()
@Deprecated void setSerializedAt(String serializedAt)
serializedAt - New value of http:www.w3.org/ns/oa#serializedAt.@Deprecated void setSerializedAt(int year, int month, int day, int hours, int minutes, int seconds, String timezoneID)
year - The year to set.month - The month to set.day - The day to set.hours - The hours to set.minutes - The minutes to set.seconds - The seconds to set.timezoneID - The timezone to set.@Deprecated String getAnnotatedAt()
@Deprecated void setAnnotatedAt(String annotatedAt)
annotatedAt - New value of http:www.w3.org/ns/oa#annotatedAt.@Deprecated void setAnnotatedAt(int year, int month, int day, int hours, int minutes, int seconds, String timezoneID)
year - The year to set.month - The month to set.day - The day to set.hours - The hours to set.minutes - The minutes to set.seconds - The seconds to set.timezoneID - The timezone to set.void setAudiences(Set<Audience> audiences)
audiences - The audiences to set for the http://schema.org/audience relationship.Set<Audience> getAudiences()
void addAudience(Audience audience)
audience - The Audience to addvoid setStyledBy(Style stylesheet)
stylesheet - The value to set for the http://www.w3.org/ns/oa#styledBy relationship.Style getStyledBy()
Copyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.