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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContributor
(Link contributor) void
addCreator
(Link creator) void
addInstanceShape
(Link instanceShape) void
addServiceProvider
(Link serviceProvider) static ResourceShape
getLabel()
void
setComment
(String comment) void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
void
setModified
(Date modified) void
setServiceProvider
(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:
addContributor
in interfaceILinkType
-
addCreator
- Specified by:
addCreator
in interfaceILinkType
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceILinkType
-
addServiceProvider
- Specified by:
addServiceProvider
in 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:
getContributor
in 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:
getCreated
in 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:
getCreator
in 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:
getIdentifier
in 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:
getModified
in 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:
getInstanceShape
in 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:
getServiceProvider
in 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:
getComment
in 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:
setContributor
in interfaceILinkType
-
setCreated
- Specified by:
setCreated
in interfaceILinkType
-
setCreator
- Specified by:
setCreator
in interfaceILinkType
-
setIdentifier
- Specified by:
setIdentifier
in interfaceILinkType
-
setModified
- Specified by:
setModified
in interfaceILinkType
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceILinkType
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceILinkType
-
setComment
- Specified by:
setComment
in interfaceILinkType
-
setLabel
-