@OslcNamespace(value="http://open-services.net/ns/am#") @OslcName(value="LinkType") @OslcResourceShape(title="LinkType Resource Shape", describes="http://open-services.net/ns/am#LinkType") public class LinkType extends org.eclipse.lyo.oslc4j.core.model.AbstractResource implements ILinkType
Modifier and Type | Method and Description |
---|---|
void |
addContributor(org.eclipse.lyo.oslc4j.core.model.Link contributor) |
void |
addCreator(org.eclipse.lyo.oslc4j.core.model.Link creator) |
void |
addInstanceShape(org.eclipse.lyo.oslc4j.core.model.Link instanceShape) |
void |
addServiceProvider(org.eclipse.lyo.oslc4j.core.model.Link serviceProvider) |
static org.eclipse.lyo.oslc4j.core.model.ResourceShape |
createResourceShape() |
String |
getComment() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getContributor() |
Date |
getCreated() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getCreator() |
String |
getIdentifier() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getInstanceShape() |
String |
getLabel() |
Date |
getModified() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getServiceProvider() |
void |
setComment(String comment) |
void |
setContributor(Set<org.eclipse.lyo.oslc4j.core.model.Link> contributor) |
void |
setCreated(Date created) |
void |
setCreator(Set<org.eclipse.lyo.oslc4j.core.model.Link> creator) |
void |
setIdentifier(String identifier) |
void |
setInstanceShape(Set<org.eclipse.lyo.oslc4j.core.model.Link> instanceShape) |
void |
setLabel(String label) |
void |
setModified(Date modified) |
void |
setServiceProvider(Set<org.eclipse.lyo.oslc4j.core.model.Link> serviceProvider) |
String |
toString() |
String |
toString(boolean asLocalResource) |
public LinkType()
public LinkType(URI about)
public static org.eclipse.lyo.oslc4j.core.model.ResourceShape createResourceShape() throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException
org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
URISyntaxException
public String toString(boolean asLocalResource)
public void addContributor(org.eclipse.lyo.oslc4j.core.model.Link contributor)
addContributor
in interface ILinkType
public void addCreator(org.eclipse.lyo.oslc4j.core.model.Link creator)
addCreator
in interface ILinkType
public void addInstanceShape(org.eclipse.lyo.oslc4j.core.model.Link instanceShape)
addInstanceShape
in interface ILinkType
public void addServiceProvider(org.eclipse.lyo.oslc4j.core.model.Link serviceProvider)
addServiceProvider
in interface ILinkType
@OslcName(value="contributor") @OslcPropertyDefinition(value="http://purl.org/dc/terms/contributor") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getContributor()
getContributor
in interface ILinkType
@OslcName(value="created") @OslcPropertyDefinition(value="http://purl.org/dc/terms/created") @OslcDescription(value="Timestamp of resource creation") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getCreated()
getCreated
in interface ILinkType
@OslcName(value="creator") @OslcPropertyDefinition(value="http://purl.org/dc/terms/creator") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getCreator()
getCreator
in interface ILinkType
@OslcName(value="identifier") @OslcPropertyDefinition(value="http://purl.org/dc/terms/identifier") @OslcDescription(value="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(value=ExactlyOne) @OslcValueType(value=String) @OslcReadOnly(value=false) public String getIdentifier()
getIdentifier
in interface ILinkType
@OslcName(value="modified") @OslcPropertyDefinition(value="http://purl.org/dc/terms/modified") @OslcDescription(value="Timestamp of latest resource modification") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getModified()
getModified
in interface ILinkType
@OslcName(value="instanceShape") @OslcPropertyDefinition(value="http://open-services.net/ns/core#instanceShape") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getInstanceShape()
getInstanceShape
in interface ILinkType
@OslcName(value="serviceProvider") @OslcPropertyDefinition(value="http://open-services.net/ns/core#serviceProvider") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getServiceProvider()
getServiceProvider
in interface ILinkType
@OslcName(value="comment") @OslcPropertyDefinition(value="http://www.w3.org/2000/01/rdf-schema#comment") @OslcDescription(value="May be used to provide a human-readable description of a resource.") @OslcOccurs(value=ExactlyOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getComment()
getComment
in interface ILinkType
@OslcName(value="label") @OslcPropertyDefinition(value="http://www.w3.org/2000/01/rdf-schema#label") @OslcDescription(value="May be used to provide a human-readable version of a resource\'s name.") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getLabel()
public void setContributor(Set<org.eclipse.lyo.oslc4j.core.model.Link> contributor)
setContributor
in interface ILinkType
public void setCreated(Date created)
setCreated
in interface ILinkType
public void setCreator(Set<org.eclipse.lyo.oslc4j.core.model.Link> creator)
setCreator
in interface ILinkType
public void setIdentifier(String identifier)
setIdentifier
in interface ILinkType
public void setModified(Date modified)
setModified
in interface ILinkType
public void setInstanceShape(Set<org.eclipse.lyo.oslc4j.core.model.Link> instanceShape)
setInstanceShape
in interface ILinkType
public void setServiceProvider(Set<org.eclipse.lyo.oslc4j.core.model.Link> serviceProvider)
setServiceProvider
in interface ILinkType
public void setComment(String comment)
setComment
in interface ILinkType
Copyright © 2020. All rights reserved.