Package com.sodius.oslc.core.model
Class Comment
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.core.model.Comment
-
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/core#") @OslcName("Comment") @OslcResourceShape(title="OSLC Comment Resource Shape", describes="http://open-services.net/ns/core#Comment") public class Comment extends AbstractResource
Represents Comment.See the OSLC Core Vocabulary specification for details:
http://open-services.net/bin/view/Main/OSLCCoreSpecAppendixA#oslc_Comment_Resource- Since:
- 1.3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreated()
URI
getCreator()
String
getDescription()
String
getIdentifier()
URI
getInReplyTo()
Date
getModified()
URI
getPartOfDiscussion()
String
getTitle()
void
setCreated(Date created)
void
setCreator(URI creator)
void
setDescription(String description)
void
setIdentifier(String identifier)
void
setInReplyTo(URI inReplyTo)
void
setModified(Date modified)
void
setPartOfDiscussion(URI partOfDiscussion)
void
setTitle(String title)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
Comment
public Comment()
-
Comment
public Comment(URI about)
-
-
Method Detail
-
getTitle
@OslcDescription("Title of the resource") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcTitle("Description") @OslcValueType(XMLLiteral) @OslcOccurs(ExactlyOne) public String getDescription()
-
setDescription
public void setDescription(String description)
-
getIdentifier
@OslcDescription("A unique identifier for a resource. Assigned by the service provider when a resource is created. Not intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcTitle("Identifier") public String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
getCreator
@OslcDescription("Creator of resource.") @OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Creator") public URI getCreator()
-
setCreator
public void setCreator(URI creator)
-
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcTitle("Created") public Date getCreated()
-
setCreated
public void setCreated(Date created)
-
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcTitle("Modified") public Date getModified()
-
setModified
public void setModified(Date modified)
-
getPartOfDiscussion
@OslcName("partOfDiscussion") @OslcPropertyDefinition("http://open-services.net/ns/core#partOfDiscussion") @OslcRange("http://open-services.net/ns/core#Discussion") @OslcTitle("Part Of Discussion") @OslcOccurs(ExactlyOne) public URI getPartOfDiscussion()
-
setPartOfDiscussion
public void setPartOfDiscussion(URI partOfDiscussion)
-
getInReplyTo
@OslcName("inReplyTo") @OslcPropertyDefinition("http://open-services.net/ns/core#inReplyTo") @OslcRange("http://open-services.net/ns/core#Comment") @OslcTitle("In Reply To") public URI getInReplyTo()
-
setInReplyTo
public void setInReplyTo(URI inReplyTo)
-
-