public enum LinkType extends Enum<LinkType>
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.
Modifier and Type | Class and Description |
---|---|
static class |
LinkType.Direction |
Modifier and Type | Method and Description |
---|---|
static Collection<LinkType> |
forAssociationType(AssociationType associationType)
Returns the supported link types for the given association type.
|
static Collection<LinkType> |
forDeliverableType(DeliverableType deliverableType)
Returns the supported link types matching the given deliverable type.
|
static Collection<LinkType> |
forPropertyDefinition(URI propertyDefinition)
Returns the supported link types for the given property definition.
|
static Collection<LinkType> |
forSourceRange(URI sourceRange)
Returns the supported link types for the given source range.
|
AssociationType |
getAssociationType() |
Optional<LinkType> |
getBacklink() |
Optional<DeliverableType> |
getDeliverableType()
Returns the link type's default deliverable type.
|
static Optional<DeliverableType> |
getDeliverableType(URI propertyDefinition)
Returns the link type default deliverable type for the given property definition.
|
LinkType.Direction |
getDirection() |
static LinkType.Direction |
getDirection(URI propertyDefinition)
Returns the link type direction for the given property definition.
|
URI |
getPropertyDefinition() |
URI |
getSourceRange() |
URI |
getTargetRange() |
String |
getTitle(List<Locale> locales) |
static String |
getTitle(URI propertyDefinition,
List<Locale> locales)
Returns the link type title for the given property definition.
|
static Collection<LinkType> |
supportedValues()
Returns the link types that are supported, as determined by
ProcessScope . |
static LinkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LinkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LinkType TESTED_BY_TEST_CASE
public static final LinkType TESTS_CHANGE_REQUEST
public static final LinkType BLOCKS_TEST_EXECUTION_RECORD
public static final LinkType BLOCKED_BY_CHANGE_REQUEST
public static final LinkType AFFECTS_TEST_RESULT
public static final LinkType AFFECTED_BY_CHANGE_REQUEST
public static final LinkType RELATED_TEST_PLAN
public static final LinkType RELATED_CHANGE_REQUEST_TEST_PLAN
public static final LinkType RELATED_TEST_CASE
public static final LinkType RELATED_CHANGE_REQUEST_TEST_CASE
public static final LinkType RELATED_TEST_EXECUTION_RECORD
public static final LinkType RELATED_CHANGE_REQUEST_TEST_EXECUTION_RECORD
public static final LinkType RELATED_TEST_SCRIPT
public static final LinkType RELATED_CHANGE_REQUEST_TEST_SCRIPT
public static final LinkType VALIDATES_REQUIREMENT_TEST_CASE
public static final LinkType VALIDATED_BY_TEST_CASE
public static final LinkType VALIDATES_REQUIREMENT_COLLECTION
public static final LinkType VALIDATED_BY_TEST_PLAN
public static final LinkType VALIDATES_REQUIREMENT_TEST_SCRIPT
public static final LinkType VALIDATED_BY_TEST_SCRIPT
public static final LinkType VALIDATES_ARCHITECTURE_ELEMENT
public static final LinkType VALIDATED_BY
public static final LinkType IMPLEMENTS_REQUIREMENT
public static final LinkType IMPLEMENTED_BY
public static final LinkType AFFECTS_REQUIREMENT
public static final LinkType AFFECTED_BY
public static final LinkType TRACKS_REQUIREMENT
public static final LinkType TRACKED_BY
public static final LinkType RELATED_CHANGE_REQUEST
public static final LinkType AFFECTS_PLAN_ITEM
public static final LinkType AFFECTED_BY_DEFECT
public static final LinkType TRACKED_WORK_ITEM
public static final LinkType TRACKS_WORK_ITEM
public static final LinkType ELABORATED_BY_ARCHITECTURE_ELEMENT
public static final LinkType ELABORATES
public static final LinkType DERIVES
public static final LinkType REFINE
public static final LinkType SATISFY
public static final LinkType TRACE
public static final LinkType CONSTRAINS
public static final LinkType CONSTRAINED_BY
public static final LinkType DECOMPOSES
public static final LinkType DECOMPOSED_BY
public static final LinkType SPECIFIES
public static final LinkType SPECIFIED_BY
public static final LinkType SATISFIES_RM
public static final LinkType SATISFIED_BY
public static final LinkType ELABORATES_RM
public static final LinkType ELABORATED_BY
public static LinkType[] values()
for (LinkType c : LinkType.values()) System.out.println(c);
public static LinkType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Collection<LinkType> supportedValues()
ProcessScope
.ProcessScope
public static Collection<LinkType> forAssociationType(AssociationType associationType)
associationType
- the association typepublic static Collection<LinkType> forSourceRange(URI sourceRange)
sourceRange
- the source range (e.g: OslcCm.TYPE_CHANGE_REQUEST
, OslcAm.TYPE_AMRESOURCE
, OslcRm.TYPE_REQUIREMENT
...)public static Collection<LinkType> forPropertyDefinition(URI propertyDefinition)
propertyDefinition
- the link type property definitionpublic static Collection<LinkType> forDeliverableType(DeliverableType deliverableType)
deliverableType
- the deliverable type to matchpublic static LinkType.Direction getDirection(URI propertyDefinition)
Note that while a property definition may have several corresponding link types, they will always be in the same direction.
propertyDefinition
- the link type property definitionpublic static Optional<DeliverableType> getDeliverableType(URI propertyDefinition)
Deliverable types only apply to link types between a CM resource and another configurable domain (AM, QM, RM...). Other link types will return an empty optional.
propertyDefinition
- the link type property definitionpublic static String getTitle(URI propertyDefinition, List<Locale> locales)
Note that while a property definition may have several corresponding link types, they will always have the same title.
propertyDefinition
- the link type property definitionlocales
- the locales preferences to translate the titlepublic AssociationType getAssociationType()
public URI getPropertyDefinition()
public URI getSourceRange()
public URI getTargetRange()
public LinkType.Direction getDirection()
public Optional<DeliverableType> getDeliverableType()
Deliverable types only apply to link types between a CM resource and another configurable domain (AM, QM, RM...). Other link types will return an empty optional.