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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()voidsetCreated(Date created) voidsetCreator(URI creator) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetInReplyTo(URI inReplyTo) voidsetModified(Date modified) voidsetPartOfDiscussion(URI partOfDiscussion) voidMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Comment
public Comment() -
Comment
-
-
Method Details
-
getTitle
@OslcDescription("Title of the resource") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle() -
setTitle
-
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
-
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
-
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
-
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcTitle("Created") public Date getCreated() -
setCreated
-
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcTitle("Modified") public Date getModified() -
setModified
-
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
-
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
-