Package org.eclipse.lyo.oslc.domains.am
Class LinkType
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.am.LinkType
- All Implemented Interfaces:
ILinkType,IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/am#")
@OslcName("LinkType")
@OslcResourceShape(title="LinkType Shape",
describes="http://open-services.net/ns/am#LinkType")
public class LinkType
extends AbstractResource
implements ILinkType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContributor(Link contributor) voidaddCreator(Link creator) voidaddInstanceShape(Link instanceShape) voidaddServiceProvider(Link serviceProvider) static ResourceShapegetLabel()voidsetComment(String comment) voidsetContributor(Set<Link> contributor) voidsetCreated(Date created) voidsetCreator(Set<Link> creator) voidsetIdentifier(String identifier) voidsetInstanceShape(Set<Link> instanceShape) voidvoidsetModified(Date modified) voidsetServiceProvider(Set<Link> serviceProvider) toString()toString(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
LinkType
public LinkType() -
LinkType
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributorin interfaceILinkType
-
addCreator
- Specified by:
addCreatorin interfaceILinkType
-
addInstanceShape
- Specified by:
addInstanceShapein interfaceILinkType
-
addServiceProvider
- Specified by:
addServiceProviderin interfaceILinkType
-
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 interfaceILinkType
-
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 interfaceILinkType
-
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 interfaceILinkType
-
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 interfaceILinkType
-
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 interfaceILinkType
-
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 interfaceILinkType
-
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 interfaceILinkType
-
getComment
@OslcName("comment") @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#comment") @OslcDescription("May be used to provide a human-readable description of a resource.") @OslcOccurs(ExactlyOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getComment()- Specified by:
getCommentin interfaceILinkType
-
getLabel
@OslcName("label") @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#label") @OslcDescription("May be used to provide a human-readable version of a resource\'s name.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getLabel() -
setContributor
- Specified by:
setContributorin interfaceILinkType
-
setCreated
- Specified by:
setCreatedin interfaceILinkType
-
setCreator
- Specified by:
setCreatorin interfaceILinkType
-
setIdentifier
- Specified by:
setIdentifierin interfaceILinkType
-
setModified
- Specified by:
setModifiedin interfaceILinkType
-
setInstanceShape
- Specified by:
setInstanceShapein interfaceILinkType
-
setServiceProvider
- Specified by:
setServiceProviderin interfaceILinkType
-
setComment
- Specified by:
setCommentin interfaceILinkType
-
setLabel
-