Class Component
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.domain.config.model.Component
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/config#")
@OslcResourceShape(title="Component Resource Shape",
describes="http://open-services.net/ns/config#Component")
public class Component
extends AbstractResource
A unit of organization consisting of a set of version resources.
See the OSLC Configuration Management specification for details:
https://tools.oasis-open.org/version-control/browse/wsvn/oslc-core/trunk/specs/config/oslc-config-mgt.html
- Since:
- 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContributor(URI contributor) voidaddCreator(URI creator) voidaddModifiedBy(URI modifiedBy) voidaddServiceProvider(URI serviceProvider) Adds a Service Provider to this Component.voidaddSubject(String subject) URI[]URI[]URI[]Deprecated.URI[]Gets this Component's Service Providers.String[]getTitle()voidsetConfigurations(URI configurations) voidsetContributors(URI[] contributors) voidsetCreated(Date created) voidsetCreators(URI[] creators) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetInstanceShape(URI instanceShape) voidsetModified(Date modified) voidsetModifiedBy(URI[] modifiedBy) voidsetServiceProvider(URI serviceProvider) Deprecated.voidsetServiceProviders(URI[] serviceProviders) Sets this Component's Service Providers.voidsetShortId(String shortId) voidsetShortTitle(String shortTitle) voidsetSubjects(String[] subjects) voidMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Component
public Component()
-
-
Method Details
-
getContributors
@OslcDescription("The person(s) who are responsible for this resource.") @OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcOccurs(ZeroOrMany) @OslcTitle("Contributor") @OslcReadOnly(true) public URI[] getContributors() -
setContributors
-
addContributor
-
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcOccurs(ZeroOrOne) @OslcReadOnly(true) @OslcValueType(DateTime) @OslcTitle("Created") public Date getCreated() -
setCreated
-
getCreators
@OslcDescription("Creator or creators of resource.") @OslcName("creator") @OslcReadOnly(true) @OslcOccurs(ZeroOrMany) @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Creators") public URI[] getCreators() -
setCreators
-
addCreator
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcReadOnly(false) @OslcTitle("Description") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) 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(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcReadOnly(true) @OslcValueType(String) @OslcTitle("Identifier") public String getIdentifier() -
setIdentifier
-
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcOccurs(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcReadOnly(true) @OslcValueType(DateTime) @OslcTitle("Modified") public Date getModified() -
setModified
-
getSubjects
@OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcName("subject") @OslcOccurs(ZeroOrMany) @OslcReadOnly(false) @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcTitle("Subject") @OslcValueType(String) public String[] getSubjects() -
setSubjects
-
addSubject
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcReadOnly(false) @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle() -
setTitle
-
getConfigurations
@OslcDescription("The configurations of the component.") @OslcPropertyDefinition("http://open-services.net/ns/config#configurations") @OslcOccurs(ExactlyOne) @OslcRange("http://www.w3.org/ns/ldp#Container") @OslcReadOnly(true) @OslcRepresentation(Reference) @OslcTitle("Configurations") @OslcValueType(Resource) public URI getConfigurations() -
setConfigurations
-
getInstanceShape
@OslcDescription("Resource Shape that provides hints as to resource property value-types and allowed values.") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcOccurs(ZeroOrOne) @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcReadOnly(true) @OslcValueType(Resource) @OslcTitle("Instance Shape") public URI getInstanceShape() -
setInstanceShape
-
getModifiedBy
@OslcDescription("The entity that most recently modified the subject resource.") @OslcName("modifiedBy") @OslcPropertyDefinition("http://open-services.net/ns/core#modifiedBy") @OslcReadOnly(true) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("ModifiedBy") public URI[] getModifiedBy() -
setModifiedBy
-
addModifiedBy
-
getServiceProviders
@OslcDescription("The scope of a resource is a URI for the resource\'s OSLC Service Provider.") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcName("serviceProvider") @OslcRange("http://open-services.net/ns/core#ServiceProvider") @OslcReadOnly(true) @OslcOccurs(ZeroOrMany) @OslcTitle("Service Provider") @OslcValueType(Resource) public URI[] getServiceProviders()Gets this Component's Service Providers.- Returns:
- this Component's Service Providers
- Since:
- 1.9.0
-
setServiceProviders
Sets this Component's Service Providers.- Parameters:
serviceProviders- this Component's Service Providers- Since:
- 1.9.0
-
addServiceProvider
Adds a Service Provider to this Component.- Parameters:
serviceProvider- the Service Provider to add- Since:
- 1.9.0
-
getServiceProvider
Deprecated.Deprecated: usegetServiceProviders()instead.- Returns:
- this Component's Service Provider
-
setServiceProvider
Deprecated.Deprecated: usesetServiceProviders(URI[])instead.- Parameters:
serviceProvider- this Component's Service Provider
-
getShortId
@OslcDescription("Short id identifying a resource.") @OslcPropertyDefinition("http://open-services.net/ns/core#shortId") @OslcTitle("Short ID") @OslcOccurs(ZeroOrOne) @OslcValueType(String) public String getShortId() -
setShortId
-
getShortTitle
@OslcDescription("Short name identifying a resource, often used as an abbreviated identifier for presentation to end-users.") @OslcPropertyDefinition("http://open-services.net/ns/core#shortTitle") @OslcTitle("Short Title") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) public String getShortTitle() -
setShortTitle
-
getServiceProviders()