@OslcNamespace(value="http://www.sodius.com/ns/process#")
@OslcResourceShape(title="Link Type Resource Shape",
describes="http://www.sodius.com/ns/process#LinkType")
public class LinkType
extends org.eclipse.lyo.oslc4j.core.model.AbstractResource
Link types are grouped by AssociationType
.
Here are some resources listing existing OSLC link types:
The set of supported link types can be restricted to a subset using a ProcessScope
instance,
that all methods returning link types in this class will use.
ProcessScope
Constructor and Description |
---|
LinkType() |
LinkType(LinkType linkType,
HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
static Collection<LinkType> |
forAssociationType(String associationTypeId,
HttpServletRequest request)
Returns the supported link types for the given association type.
|
static Collection<LinkType> |
forPropertyDefinition(URI propertyDefinition,
HttpServletRequest request)
Returns the supported link types for the given property definition.
|
static Collection<LinkType> |
forSourceRange(URI sourceRange,
HttpServletRequest request)
Returns the supported link types for the given source range.
|
URI |
getBacklinkPropertyDefinition() |
String |
getLinkDirection() |
static Collection<LinkType> |
getLinkTypes(HttpServletRequest request)
Returns all supported link types.
|
URI |
getPropertyDefinition() |
URI |
getSourceRange() |
URI |
getTargetRange() |
String |
getTitle() |
void |
setBacklinkPropertyDefinition(URI backlinkPropertyDefinition) |
void |
setLinkDirection(String linkDirection) |
void |
setPropertyDefinition(URI propertyDefinition) |
void |
setSourceRange(URI sourceRange) |
void |
setTargetRange(URI targetRange) |
void |
setTitle(String title) |
public LinkType()
public LinkType(LinkType linkType, HttpServletRequest request)
public static Collection<LinkType> getLinkTypes(HttpServletRequest request)
request
- the http requestpublic static Collection<LinkType> forAssociationType(String associationTypeId, HttpServletRequest request)
associationTypeId
- the association type identifierrequest
- the http requestpublic static Collection<LinkType> forSourceRange(URI sourceRange, HttpServletRequest request)
sourceRange
- the source range (e.g: OslcCm.TYPE_CHANGE_REQUEST
, OslcAm.TYPE_AMRESOURCE
, OslcRm.TYPE_REQUIREMENT
...)request
- the http requestpublic static Collection<LinkType> forPropertyDefinition(URI propertyDefinition, HttpServletRequest request)
propertyDefinition
- the link type property definitionrequest
- the http request@OslcPropertyDefinition(value="http://open-services.net/ns/core#propertyDefinition") public URI getPropertyDefinition()
public void setPropertyDefinition(URI propertyDefinition)
@OslcPropertyDefinition(value="http://purl.org/dc/terms/title") public String getTitle()
public void setTitle(String title)
@OslcPropertyDefinition(value="http://www.sodius.com/ns/process#backlinkPropertyDefinition") public URI getBacklinkPropertyDefinition()
public void setBacklinkPropertyDefinition(URI backlinkPropertyDefinition)
@OslcPropertyDefinition(value="http://www.sodius.com/ns/process#sourceRange") public URI getSourceRange()
public void setSourceRange(URI sourceRange)
@OslcPropertyDefinition(value="http://www.sodius.com/ns/process#targetRange") public URI getTargetRange()
public void setTargetRange(URI targetRange)
@OslcPropertyDefinition(value="http://www.sodius.com/ns/process#linkDirection") public String getLinkDirection()
public void setLinkDirection(String linkDirection)