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
-
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
Resource
public Resource()
-
Resource
public Resource(URI about)
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
-
toString
public String toString(boolean asLocalResource)
-
addContributor
public void addContributor(Link contributor)
- Specified by:
addContributor
in interfaceIResource
-
addCreator
public void addCreator(Link creator)
- Specified by:
addCreator
in interfaceIResource
-
addInstanceShape
public void addInstanceShape(Link instanceShape)
- Specified by:
addInstanceShape
in interfaceIResource
-
addServiceProvider
public void addServiceProvider(Link serviceProvider)
- Specified by:
addServiceProvider
in interfaceIResource
-
addExternal
public void addExternal(Link external)
- Specified by:
addExternal
in interfaceIResource
-
addDerives
public void addDerives(Link derives)
- Specified by:
addDerives
in interfaceIResource
-
addElaborates
public void addElaborates(Link elaborates)
- Specified by:
addElaborates
in interfaceIResource
-
addSatisfy
public void addSatisfy(Link satisfy)
- 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
public void setContributor(Set<Link> contributor)
- Specified by:
setContributor
in interfaceIResource
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreated
in interfaceIResource
-
setCreator
public void setCreator(Set<Link> creator)
- Specified by:
setCreator
in interfaceIResource
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceIResource
-
setIdentifier
public void setIdentifier(String identifier)
- Specified by:
setIdentifier
in interfaceIResource
-
setModified
public void setModified(Date modified)
- Specified by:
setModified
in interfaceIResource
-
setInstanceShape
public void setInstanceShape(Set<Link> instanceShape)
- Specified by:
setInstanceShape
in interfaceIResource
-
setServiceProvider
public void setServiceProvider(Set<Link> serviceProvider)
- Specified by:
setServiceProvider
in interfaceIResource
-
setShortTitle
public void setShortTitle(String shortTitle)
- Specified by:
setShortTitle
in interfaceIResource
-
setExternal
public void setExternal(Set<Link> external)
- Specified by:
setExternal
in interfaceIResource
-
setDerives
public void setDerives(Set<Link> derives)
- Specified by:
setDerives
in interfaceIResource
-
setElaborates
public void setElaborates(Set<Link> elaborates)
- Specified by:
setElaborates
in interfaceIResource
-
setSatisfy
public void setSatisfy(Set<Link> satisfy)
- Specified by:
setSatisfy
in interfaceIResource
-
-