Class Configuration
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.config.Configuration
- All Implemented Interfaces:
IConfiguration
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/config#")
@OslcName("Configuration")
@OslcResourceShape(title="",
description="",
describes="http://open-services.net/ns/config#Configuration")
public class Configuration
extends AbstractResource
implements IConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAcceptedBy
(Link acceptedBy) void
addContributor
(Link contributor) void
addCreator
(Link creator) void
addInstanceShape
(Link instanceShape) void
addModifiedBy
(Link modifiedBy) void
addRelease
(Link release) void
addSelections
(Link selections) void
addServiceProvider
(Link serviceProvider) void
addSubject
(String subject) static ResourceShape
getTitle()
void
setAcceptedBy
(Set<Link> acceptedBy) void
setArchived
(Boolean archived) void
void
setComponent
(Link component) void
setContribution
(Link contribution) void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setDescription
(String description) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
setModifiedBy
(Set<Link> modifiedBy) void
setRelease
(Set<Link> release) void
setSelections
(Set<Link> selections) void
setServiceProvider
(Set<Link> serviceProvider) void
setShortId
(String shortId) void
setShortTitle
(String shortTitle) void
setSubject
(Set<String> subject) void
toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Configuration
public Configuration() -
Configuration
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributor
in interfaceIConfiguration
-
addCreator
- Specified by:
addCreator
in interfaceIConfiguration
-
addSubject
- Specified by:
addSubject
in interfaceIConfiguration
-
addAcceptedBy
- Specified by:
addAcceptedBy
in interfaceIConfiguration
-
addSelections
- Specified by:
addSelections
in interfaceIConfiguration
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceIConfiguration
-
addModifiedBy
- Specified by:
addModifiedBy
in interfaceIConfiguration
-
addRelease
- Specified by:
addRelease
in interfaceIConfiguration
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceIConfiguration
-
getContributor
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcDescription("Contributor or contributors to the resource. The link target is usually a foaf:Person or foaf:Agent, but could be any type.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Person","http://xmlns.com/foaf/0.1/Agent"}) @OslcReadOnly(false) public Set<Link> getContributor()- Specified by:
getContributor
in interfaceIConfiguration
-
getCreated
@OslcName("created") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcDescription("Timestamp of resource creation") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getCreated()- Specified by:
getCreated
in interfaceIConfiguration
-
getCreator
@OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcDescription("Creator or creators of the resource. The link target is usually a foaf:Person or foaf:Agent, but could be any type") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Person","http://xmlns.com/foaf/0.1/Agent"}) @OslcReadOnly(false) public Set<Link> getCreator()- Specified by:
getCreator
in interfaceIConfiguration
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcDescription("Descriptive text about resource represented as rich text in XHTML content. SHOULD include only content that is valid and suitable inside an XHTML <div> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescription
in interfaceIConfiguration
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcDescription("A unique identifier for a resource. Typically read-only and assigned by the service provider when a resource is created. Not typically intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()- Specified by:
getIdentifier
in interfaceIConfiguration
-
getModified
@OslcName("modified") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcDescription("Timestamp of latest resource modification") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getModified()- Specified by:
getModified
in interfaceIConfiguration
-
getSubject
@OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcReadOnly(false) @OslcTitle("") public Set<String> getSubject()- Specified by:
getSubject
in interfaceIConfiguration
-
getTitle
@OslcName("title") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcDescription("Title of the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ExactlyOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getTitle()- Specified by:
getTitle
in interfaceIConfiguration
-
getAcceptedBy
@OslcName("acceptedBy") @OslcPropertyDefinition("http://open-services.net/ns/config#acceptedBy") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://www.w3.org/2000/01/rdf-schema#RdfsClass") @OslcReadOnly(false) public Set<Link> getAcceptedBy()- Specified by:
getAcceptedBy
in interfaceIConfiguration
-
getBranch
@OslcName("branch") @OslcPropertyDefinition("http://open-services.net/ns/config#branch") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcReadOnly(false) public Link getBranch()- Specified by:
getBranch
in interfaceIConfiguration
-
getComponent
@OslcName("component") @OslcPropertyDefinition("http://open-services.net/ns/config#component") @OslcDescription("The component to which this version belongs. Configuration Management provider should indicate the owning component for each version resource using either this property, or using the membership relationship from the component LDPC.") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/config#Component") @OslcReadOnly(false) public Link getComponent()- Specified by:
getComponent
in interfaceIConfiguration
-
getContribution
@OslcName("contribution") @OslcPropertyDefinition("http://open-services.net/ns/config#contribution") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/config#Contribution") @OslcReadOnly(false) public Link getContribution()- Specified by:
getContribution
in interfaceIConfiguration
-
getSelections
@OslcName("selections") @OslcPropertyDefinition("http://open-services.net/ns/config#selections") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/config#Selections") @OslcReadOnly(false) public Set<Link> getSelections()- Specified by:
getSelections
in interfaceIConfiguration
-
isArchived
@OslcName("archived") @OslcPropertyDefinition("http://open-services.net/ns/core#archived") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isArchived()- Specified by:
isArchived
in interfaceIConfiguration
-
getInstanceShape
@OslcName("instanceShape") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcDescription("The URI of a Resource Shape that describes the possible properties, occurrence, value types, allowed values and labels. This shape information is useful in displaying the subject resource as well as guiding clients in performing modifications. Instance shapes may be specific to the authenticated user associated with the request that retrieved the resource, the current state of the resource and other factors and thus should not be cached.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getInstanceShape()- Specified by:
getInstanceShape
in interfaceIConfiguration
-
getModifiedBy
@OslcName("modifiedBy") @OslcPropertyDefinition("http://open-services.net/ns/core#modifiedBy") @OslcDescription("The entity that most recently modified the subject resource. The link target is usually a foaf:Person or foaf:Agent, but could be any type.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Agent","http://xmlns.com/foaf/0.1/Person"}) @OslcReadOnly(false) public Set<Link> getModifiedBy()- Specified by:
getModifiedBy
in interfaceIConfiguration
-
getRelease
@OslcName("release") @OslcPropertyDefinition("http://open-services.net/ns/core#release") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) public Set<Link> getRelease()- Specified by:
getRelease
in interfaceIConfiguration
-
getServiceProvider
@OslcName("serviceProvider") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcDescription("A link to the resource\'s OSLC Service Provider. There may be cases when the subject resource is available from a service provider that implements multiple domain specifications, which could result in multiple values for this property.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getServiceProvider()- Specified by:
getServiceProvider
in interfaceIConfiguration
-
getShortId
@OslcName("shortId") @OslcPropertyDefinition("http://open-services.net/ns/core#shortId") @OslcDescription("Shorter form of dcterms:identifier for the resource, such as a number.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getShortId()- Specified by:
getShortId
in interfaceIConfiguration
-
getShortTitle
@OslcName("shortTitle") @OslcPropertyDefinition("http://open-services.net/ns/core#shortTitle") @OslcDescription("Shorter form of dcterms:title for the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getShortTitle()- Specified by:
getShortTitle
in interfaceIConfiguration
-
setContributor
- Specified by:
setContributor
in interfaceIConfiguration
-
setCreated
- Specified by:
setCreated
in interfaceIConfiguration
-
setCreator
- Specified by:
setCreator
in interfaceIConfiguration
-
setDescription
- Specified by:
setDescription
in interfaceIConfiguration
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIConfiguration
-
setModified
- Specified by:
setModified
in interfaceIConfiguration
-
setSubject
- Specified by:
setSubject
in interfaceIConfiguration
-
setTitle
- Specified by:
setTitle
in interfaceIConfiguration
-
setAcceptedBy
- Specified by:
setAcceptedBy
in interfaceIConfiguration
-
setBranch
- Specified by:
setBranch
in interfaceIConfiguration
-
setComponent
- Specified by:
setComponent
in interfaceIConfiguration
-
setContribution
- Specified by:
setContribution
in interfaceIConfiguration
-
setSelections
- Specified by:
setSelections
in interfaceIConfiguration
-
setArchived
- Specified by:
setArchived
in interfaceIConfiguration
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceIConfiguration
-
setModifiedBy
- Specified by:
setModifiedBy
in interfaceIConfiguration
-
setRelease
- Specified by:
setRelease
in interfaceIConfiguration
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceIConfiguration
-
setShortId
- Specified by:
setShortId
in interfaceIConfiguration
-
setShortTitle
- Specified by:
setShortTitle
in interfaceIConfiguration
-