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 TypeMethodDescriptionvoidaddContributor(Link contributor) voidaddCreator(Link creator) voidaddDerives(Link derives) voidaddElaborates(Link elaborates) voidaddExternal(Link external) voidaddInstanceShape(Link instanceShape) voidvoidaddSatisfy(Link satisfy) voidaddServiceProvider(Link serviceProvider) voidvoidstatic ResourceShapegetTitle()getTrace()getType()voidsetContributor(Set<Link> contributor) voidsetCreated(Date created) voidsetCreator(Set<Link> creator) voidsetDerives(Set<Link> derives) voidsetDescription(String description) voidsetElaborates(Set<Link> elaborates) voidsetExternal(Set<Link> external) voidsetIdentifier(String identifier) voidsetInstanceShape(Set<Link> instanceShape) voidsetModified(Date modified) voidvoidsetSatisfy(Set<Link> satisfy) voidsetServiceProvider(Set<Link> serviceProvider) voidsetShortTitle(String shortTitle) voidvoidvoidvoidtoString()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:
addContributorin interfaceIResource
-
addCreator
- Specified by:
addCreatorin interfaceIResource
-
addType
-
addInstanceShape
- Specified by:
addInstanceShapein interfaceIResource
-
addServiceProvider
- Specified by:
addServiceProviderin interfaceIResource
-
addExternal
- Specified by:
addExternalin interfaceIResource
-
addTrace
-
addRefine
-
addDerives
- Specified by:
addDerivesin interfaceIResource
-
addElaborates
- Specified by:
addElaboratesin interfaceIResource
-
addSatisfy
- 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
- Specified by:
setContributorin interfaceIResource
-
setCreated
- Specified by:
setCreatedin interfaceIResource
-
setCreator
- Specified by:
setCreatorin interfaceIResource
-
setDescription
- Specified by:
setDescriptionin interfaceIResource
-
setIdentifier
- Specified by:
setIdentifierin interfaceIResource
-
setModified
- Specified by:
setModifiedin interfaceIResource
-
setSource
-
setTitle
-
setType
-
setInstanceShape
- Specified by:
setInstanceShapein interfaceIResource
-
setServiceProvider
- Specified by:
setServiceProviderin interfaceIResource
-
setShortTitle
- Specified by:
setShortTitlein interfaceIResource
-
setExternal
- Specified by:
setExternalin interfaceIResource
-
setTrace
-
setRefine
-
setDerives
- Specified by:
setDerivesin interfaceIResource
-
setElaborates
- Specified by:
setElaboratesin interfaceIResource
-
setSatisfy
- Specified by:
setSatisfyin interfaceIResource
-