Enum Class LinkType
- All Implemented Interfaces:
Serializable,Comparable<LinkType>,java.lang.constant.Constable
Link types are grouped by AssociationType.
Here are some resources listing existing OSLC link types:
- Jazz wiki (association types): https://jazz.net/wiki/bin/view/Main/CALM2010LinkTypes
- Jazz wiki (CLM): https://jazz.net/wiki/bin/view/Deployment/IntegratingWithConfigurationManagementEnabledCLMApplications
- Jazz RM help page: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.rational.rrm.help.doc/topics/r_rm_link_domains.html
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.
- Since:
- 1.7.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBacklink ofALLOCATES, used to display incoming links but should never be stored.Backlink ofDERIVES, used to display incoming links but should never be stored.Backlink ofREALIZES, used to display incoming links but should never be stored.Links a requirement to a related resource, which is supposed to be another requirement.Backlink ofREFINE, used to display incoming links but should never be stored.Backlink ofSATISFY, used to display incoming links but should never be stored.Backlink ofTRACE, used to display incoming links but should never be stored.Backlink ofTRACKS_AM, used to display incoming links but should never be stored.Links a change request to a requirement or source change set, to control the authorization of the changes delivery. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static Collection<LinkType> forSourceType(ResourceType sourceType) Returns the supported link types for the given source type.Deprecated.Gets the association types this link belongs to.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.static LinkType.DirectiongetDirection(URI propertyDefinition) Returns the link type direction for the given property definition.getLinkTypesFromUsage(String usage, OslcNamespaces namespaces) Parses a linkingoslc:usageinto a collection of supportedLinkTypeconstants.Returns the source type of the link typeReturns the target type of the link typestatic StringReturns the link type title for the given property definition.static URIgetUsagePropertyDefinition(String usages) Deprecated, for removal: This API element is subject to removal in a future version.static booleanisNonStorableLink(URI linkType) Determines whether the link type is only present to be able to display a link title and should never be stored.booleanDetermines whether the end-user must be offered to create a link of such type.static Collection<LinkType> Returns the link types that are supported, as determined byProcessScope.static LinkTypeReturns the enum constant of this class with the specified name.static LinkType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TESTED_BY_TEST_CASE
-
TESTS_CHANGE_REQUEST
-
BLOCKS_TEST_EXECUTION_RECORD
-
BLOCKED_BY_CHANGE_REQUEST
-
AFFECTS_TEST_RESULT
-
AFFECTED_BY_CHANGE_REQUEST
-
RELATED_TEST_PLAN
-
RELATED_CHANGE_REQUEST_TEST_PLAN
-
RELATED_TEST_CASE
-
RELATED_CHANGE_REQUEST_TEST_CASE
-
RELATED_TEST_EXECUTION_RECORD
-
RELATED_CHANGE_REQUEST_TEST_EXECUTION_RECORD
-
RELATED_TEST_SCRIPT
-
RELATED_CHANGE_REQUEST_TEST_SCRIPT
-
VALIDATES_REQUIREMENT_TEST_CASE
-
VALIDATED_BY_TEST_CASE
-
VALIDATES_REQUIREMENT_COLLECTION
-
VALIDATED_BY_TEST_PLAN
-
VALIDATES_ARCHITECTURE_ELEMENT
-
VALIDATED_BY
-
IMPLEMENTS_REQUIREMENT
-
IMPLEMENTED_BY
-
AFFECTS_REQUIREMENT
-
AFFECTED_BY
-
TRACKS_REQUIREMENT
-
TRACKED_BY
-
TRACKS_CHANGE_SET
Links a change request to a requirement or source change set, to control the authorization of the changes delivery. This link type has no opposite link type, the remote server is discovering its incoming links using an OSLC query.- Since:
- 3.3.1
-
RELATED_CHANGE_REQUEST
-
AFFECTS_PLAN_ITEM
-
AFFECTED_BY_DEFECT
-
TRACKED_WORK_ITEM
- Since:
- 1.9.0
-
TRACKS_WORK_ITEM
- Since:
- 1.9.0
-
ELABORATED_BY_ARCHITECTURE_ELEMENT
-
ELABORATES
-
DERIVES
-
REFINE
-
SATISFY
-
TRACE
-
DERIVES_FROM_ARCHITECTURE_ELEMENT
Backlink ofDERIVES, used to display incoming links but should never be stored.- Since:
- 3.13.0
- See Also:
-
REFINED_BY_ARCHITECTURE_ELEMENT
Backlink ofREFINE, used to display incoming links but should never be stored.- Since:
- 3.13.0
- See Also:
-
SATISFIED_BY_ARCHITECTURE_ELEMENT
Backlink ofSATISFY, used to display incoming links but should never be stored.- Since:
- 3.13.0
- See Also:
-
TRACED_BY_ARCHITECTURE_ELEMENT
Backlink ofTRACE, used to display incoming links but should never be stored.- Since:
- 3.13.0
- See Also:
-
TRACKS_AM
- Since:
- 3.15.0
-
ALLOCATES
-
REALIZES
-
TRACKED_BY_AM
Backlink ofTRACKS_AM, used to display incoming links but should never be stored.- Since:
- 3.15.0
- See Also:
-
ALLOCATED_BY
Backlink ofALLOCATES, used to display incoming links but should never be stored.- Since:
- 3.15.0
- See Also:
-
REALIZED_BY
Backlink ofREALIZES, used to display incoming links but should never be stored.- Since:
- 3.15.0
- See Also:
-
CONSTRAINS
-
CONSTRAINED_BY
-
DECOMPOSES
-
DECOMPOSED_BY
-
SPECIFIES
-
SPECIFIED_BY
-
SATISFIES_RM
-
SATISFIED_BY
-
ELABORATES_RM
-
ELABORATED_BY
-
REFERENCES
Links a requirement to a related resource, which is supposed to be another requirement. This link type has no opposite link type, an application is discovering its incoming links using an OSLC query.- Since:
- 3.7.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
supportedValues
Returns the link types that are supported, as determined byProcessScope.- Returns:
- the supported link types.
- Since:
- 1.9.0
- See Also:
-
forAssociationType
Returns the supported link types for the given association type.- Parameters:
associationType- the association type- Returns:
- the supported link types
-
forSourceType
Returns the supported link types for the given source type.- Parameters:
sourceType- the source type (e.g:ResourceType.CHANGE_REQUESTorResourceType.REQUIREMENT)- Returns:
- the supported link types
- Since:
- 3.5.0
-
forSourceRange
Returns the supported link types for the given source range.- Parameters:
sourceRange- the source range (e.g:OslcCm.TYPE_CHANGE_REQUEST,OslcAm.TYPE_AMRESOURCE,OslcRm.TYPE_REQUIREMENT...)- Returns:
- the supported link types
-
forPropertyDefinition
Returns the supported link types for the given property definition.- Parameters:
propertyDefinition- the link type property definition- Returns:
- the corresponding link types
-
forDeliverableType
Returns the supported link types matching the given deliverable type.- Parameters:
deliverableType- the deliverable type to match- Returns:
- the supported link types
- Since:
- 1.8.0
-
getDirection
Returns the link type direction for the given property definition.Note that while a property definition may have several corresponding link types, they will always be in the same direction.
- Parameters:
propertyDefinition- the link type property definition- Returns:
- the link type direction
-
getDeliverableType
Returns the link type default deliverable type for the given property definition.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.
- Parameters:
propertyDefinition- the link type property definition- Returns:
- the link type default deliverable type
- Since:
- 1.8.0
-
getTitle
Returns the link type title for the given property definition.Note that while a property definition may have several corresponding link types, they will always have the same title.
- Parameters:
propertyDefinition- the link type property definitionlocales- the locales preferences to translate the title- Returns:
- the link type title
-
getUsagePropertyDefinition
@Deprecated(since="4.2.0", forRemoval=true) public static URI getUsagePropertyDefinition(String usages) Deprecated, for removal: This API element is subject to removal in a future version.Gets the property definition (URI) of anusagesvalue. A usage is commonly sent by ELM applications when opening a selection/creation dialog, to inform the remote application of the link type the dialog was opened for. It consists of a prefixed link type property, such asoslc_cm:relatedChangeRequest.- Parameters:
usages- the usages value.- Returns:
- the corresponding URI.
- Throws:
IllegalArgumentException- ifusagescannot be resolved to a valid instance of this class.
-
getLinkTypesFromUsage
Parses a linkingoslc:usageinto a collection of supportedLinkTypeconstants.Remote applications may send an
oslc:usagequery parameter when opening a linking dialog (selection or creation). This parameter is a semicolon-separated list of namespace-prefixed link types, e.g.,oslc:usage=oslc_qm:testsChangeRequest;oslc_rm:implementedBy, that specifies the intended link type(s) to create when the dialog selection/creation completes. Typically, a single link type is specified, but ETM has been observed to send all the link types that it will create, in cascade, in the different involved applications for a test case (as showed in the example above).Knowing the link type that will be created after the selection/creation is useful, for a Change Management application for example, to determine the
Deliverablefield that must be used to match a Global Configuration, if any.This method parses the
LinkTypeconstants in the order they are specified in the query parameter, and uses a scopingOslcNamespacesinstance to resolve the prefixed namespaces.- Parameters:
usage- theoslc:usageparameter value.namespaces- the scopingOslcNamespacesinstance.- Returns:
- an empty list if
usageisnullor empty; the matching supportingLinkTypeinstances otherwise. - Throws:
NullPointerException- ifnamespacesisnull.- Since:
- 4.2.0
-
getAssociationType
Deprecated.usegetAssociationTypes()instead, as link types can belong to multiple association types.Gets the association type this link belongs to.- Returns:
- the association type this link type belongs to.
-
getAssociationTypes
Gets the association types this link belongs to.- Returns:
- the association types this link type belongs to.
- Since:
- 3.7.0
-
getPropertyDefinition
-
getTitle
-
getSourceType
Returns the source type of the link type- Returns:
- the source type
- Since:
- 3.5.0
-
getSourceRange
-
getTargetType
Returns the target type of the link type- Returns:
- the target type
- Since:
- 3.5.0
-
getTargetRange
-
getDirection
-
getBacklink
-
getDeliverableType
Returns the link type's default deliverable type.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.
- Returns:
- the link type's default deliverable type
- Since:
- 1.8.0
-
isUserSelectable
public boolean isUserSelectable()Determines whether the end-user must be offered to create a link of such type. Most of the link types can be initiated by the end-user on his local resource, but some can only be created from the opposite bound, typically thetracksChangeSetone.- Returns:
trueif the end-user can create such link on his local resource,falseotherwise.- Since:
- 3.3.1
-
isNonStorableLink
Determines whether the link type is only present to be able to display a link title and should never be stored.- Parameters:
linkType- Property definition of the LinkType.- Returns:
- true if the link type should never be stored, false otherwise.
- Since:
- 3.13.0
-
getAssociationTypes()instead, as link types can belong to multiple association types.