Package org.eclipse.lyo.oslc.domains.am
Class Resource
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.am.Resource
- All Implemented Interfaces:
IResource
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/am#")
@OslcName("Resource")
@OslcResourceShape(title="Resource Shape",
describes="http://open-services.net/ns/am#Resource")
public class Resource
extends AbstractResource
implements IResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContributor
(Link contributor) void
addCreator
(Link creator) void
addDerives
(Link derives) void
addElaborates
(Link elaborates) void
addExternal
(Link external) void
addInstanceShape
(Link instanceShape) void
void
addSatisfy
(Link satisfy) void
addServiceProvider
(Link serviceProvider) void
void
static ResourceShape
getTitle()
getTrace()
getType()
void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setDerives
(Set<Link> derives) void
setDescription
(String description) void
setElaborates
(Set<Link> elaborates) void
setExternal
(Set<Link> external) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
void
setSatisfy
(Set<Link> satisfy) void
setServiceProvider
(Set<Link> serviceProvider) void
setShortTitle
(String shortTitle) void
void
void
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
-
Resource
public Resource() -
Resource
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributor
in interfaceIResource
-
addCreator
- Specified by:
addCreator
in interfaceIResource
-
addType
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceIResource
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceIResource
-
addExternal
- Specified by:
addExternal
in interfaceIResource
-
addTrace
-
addRefine
-
addDerives
- Specified by:
addDerives
in interfaceIResource
-
addElaborates
- Specified by:
addElaborates
in interfaceIResource
-
addSatisfy
- Specified by:
addSatisfy
in interfaceIResource
-
getContributor
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcDescription("Contributor or contributors to the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getContributor()- Specified by:
getContributor
in interfaceIResource
-
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 interfaceIResource
-
getCreator
@OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcDescription("Creator or creators of the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getCreator()- Specified by:
getCreator
in interfaceIResource
-
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 interfaceIResource
-
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 interfaceIResource
-
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 interfaceIResource
-
getSource
@OslcName("source") @OslcPropertyDefinition("http://purl.org/dc/terms/source") @OslcOccurs(ZeroOrOne) @OslcReadOnly(false) public URI getSource() -
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() -
getType
@OslcName("type") @OslcPropertyDefinition("http://purl.org/dc/terms/type") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcReadOnly(false) public Set<String> getType() -
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 interfaceIResource
-
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 interfaceIResource
-
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 interfaceIResource
-
getExternal
@OslcName("external") @OslcPropertyDefinition("http://jazz.net/ns/dm/linktypes#external") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) @OslcTitle("external") public Set<Link> getExternal()- Specified by:
getExternal
in interfaceIResource
-
getTrace
@OslcName("trace") @OslcPropertyDefinition("http://jazz.net/ns/dm/linktypes#trace") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) @OslcTitle("trace") public Set<Link> getTrace() -
getRefine
@OslcName("refine") @OslcPropertyDefinition("http://jazz.net/ns/dm/linktypes#refine") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) @OslcTitle("refine") public Set<Link> getRefine() -
getDerives
@OslcName("derives") @OslcPropertyDefinition("http://jazz.net/ns/dm/linktypes#derives") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) @OslcTitle("derives") public Set<Link> getDerives()- Specified by:
getDerives
in interfaceIResource
-
getElaborates
@OslcName("elaborates") @OslcPropertyDefinition("http://jazz.net/ns/dm/linktypes#elaborates") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) @OslcTitle("elaborates") public Set<Link> getElaborates()- Specified by:
getElaborates
in interfaceIResource
-
getSatisfy
@OslcName("satisfy") @OslcPropertyDefinition("http://jazz.net/ns/dm/linktypes#satisfy") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) @OslcTitle("satisfy") public Set<Link> getSatisfy()- Specified by:
getSatisfy
in interfaceIResource
-
setContributor
- Specified by:
setContributor
in interfaceIResource
-
setCreated
- Specified by:
setCreated
in interfaceIResource
-
setCreator
- Specified by:
setCreator
in interfaceIResource
-
setDescription
- Specified by:
setDescription
in interfaceIResource
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIResource
-
setModified
- Specified by:
setModified
in interfaceIResource
-
setSource
-
setTitle
-
setType
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceIResource
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceIResource
-
setShortTitle
- Specified by:
setShortTitle
in interfaceIResource
-
setExternal
- Specified by:
setExternal
in interfaceIResource
-
setTrace
-
setRefine
-
setDerives
- Specified by:
setDerives
in interfaceIResource
-
setElaborates
- Specified by:
setElaborates
in interfaceIResource
-
setSatisfy
- Specified by:
setSatisfy
in interfaceIResource
-