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 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:
addContributorin interfaceIResource
-
addCreator
public void addCreator(Link creator)
- Specified by:
addCreatorin interfaceIResource
-
addInstanceShape
public void addInstanceShape(Link instanceShape)
- Specified by:
addInstanceShapein interfaceIResource
-
addServiceProvider
public void addServiceProvider(Link serviceProvider)
- Specified by:
addServiceProviderin interfaceIResource
-
addExternal
public void addExternal(Link external)
- Specified by:
addExternalin interfaceIResource
-
addDerives
public void addDerives(Link derives)
- Specified by:
addDerivesin interfaceIResource
-
addElaborates
public void addElaborates(Link elaborates)
- Specified by:
addElaboratesin interfaceIResource
-
addSatisfy
public void addSatisfy(Link satisfy)
- Specified by:
addSatisfyin 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:
getContributorin 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:
getCreatedin 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:
getCreatorin 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:
getDescriptionin 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:
getIdentifierin 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:
getModifiedin 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:
getInstanceShapein 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:
getServiceProviderin 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:
getShortTitlein 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:
getExternalin 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:
getDerivesin 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:
getElaboratesin 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:
getSatisfyin interfaceIResource
-
setContributor
public void setContributor(Set<Link> contributor)
- Specified by:
setContributorin interfaceIResource
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceIResource
-
setCreator
public void setCreator(Set<Link> creator)
- Specified by:
setCreatorin interfaceIResource
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceIResource
-
setIdentifier
public void setIdentifier(String identifier)
- Specified by:
setIdentifierin interfaceIResource
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceIResource
-
setInstanceShape
public void setInstanceShape(Set<Link> instanceShape)
- Specified by:
setInstanceShapein interfaceIResource
-
setServiceProvider
public void setServiceProvider(Set<Link> serviceProvider)
- Specified by:
setServiceProviderin interfaceIResource
-
setShortTitle
public void setShortTitle(String shortTitle)
- Specified by:
setShortTitlein interfaceIResource
-
setExternal
public void setExternal(Set<Link> external)
- Specified by:
setExternalin interfaceIResource
-
setDerives
public void setDerives(Set<Link> derives)
- Specified by:
setDerivesin interfaceIResource
-
setElaborates
public void setElaborates(Set<Link> elaborates)
- Specified by:
setElaboratesin interfaceIResource
-
setSatisfy
public void setSatisfy(Set<Link> satisfy)
- Specified by:
setSatisfyin interfaceIResource
-
-