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 Constructor Description Component()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addContributor(URI contributor)
void
addCreator(URI creator)
void
addModifiedBy(URI modifiedBy)
void
addServiceProvider(URI serviceProvider)
Adds a Service Provider to this Component.void
addSubject(String subject)
URI
getConfigurations()
URI[]
getContributors()
Date
getCreated()
URI[]
getCreators()
String
getDescription()
String
getIdentifier()
URI
getInstanceShape()
Date
getModified()
URI[]
getModifiedBy()
URI
getServiceProvider()
Deprecated.URI[]
getServiceProviders()
Gets this Component's Service Providers.String
getShortId()
String
getShortTitle()
String[]
getSubjects()
String
getTitle()
void
setConfigurations(URI configurations)
void
setContributors(URI[] contributors)
void
setCreated(Date created)
void
setCreators(URI[] creators)
void
setDescription(String description)
void
setIdentifier(String identifier)
void
setInstanceShape(URI instanceShape)
void
setModified(Date modified)
void
setModifiedBy(URI[] modifiedBy)
void
setServiceProvider(URI serviceProvider)
Deprecated.void
setServiceProviders(URI[] serviceProviders)
Sets this Component's Service Providers.void
setShortId(String shortId)
void
setShortTitle(String shortTitle)
void
setSubjects(String[] subjects)
void
setTitle(String title)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
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
public void setContributors(URI[] contributors)
-
addContributor
public void addContributor(URI contributor)
-
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
public void setCreated(Date created)
-
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
public void setCreators(URI[] creators)
-
addCreator
public void addCreator(URI creator)
-
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
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(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcReadOnly(true) @OslcValueType(String) @OslcTitle("Identifier") public String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
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
public void setModified(Date modified)
-
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
public void setSubjects(String[] subjects)
-
addSubject
public void addSubject(String subject)
-
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
public void setTitle(String title)
-
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
public void setConfigurations(URI configurations)
-
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
public void setInstanceShape(URI instanceShape)
-
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
public void setModifiedBy(URI[] modifiedBy)
-
addModifiedBy
public void addModifiedBy(URI modifiedBy)
-
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
public void setServiceProviders(URI[] serviceProviders)
Sets this Component's Service Providers.- Parameters:
serviceProviders
- this Component's Service Providers- Since:
- 1.9.0
-
addServiceProvider
public void addServiceProvider(URI serviceProvider)
Adds a Service Provider to this Component.- Parameters:
serviceProvider
- the Service Provider to add- Since:
- 1.9.0
-
getServiceProvider
@Deprecated(since="1.9.0", forRemoval=false) public URI getServiceProvider()
Deprecated.Deprecated: usegetServiceProviders()
instead.- Returns:
- this Component's Service Provider
-
setServiceProvider
@Deprecated(since="1.9.0", forRemoval=false) public void setServiceProvider(URI serviceProvider)
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
public void setShortId(String shortId)
-
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
public void setShortTitle(String shortTitle)
-
-