Enum AssociationType
- java.lang.Object
-
- java.lang.Enum<AssociationType>
-
- com.sodius.oslc.core.process.model.AssociationType
-
- All Implemented Interfaces:
Serializable
,Comparable<AssociationType>
public enum AssociationType extends Enum<AssociationType>
Describes a type ofProjectAreaAssociation
.An association type gives access to a set of
LinkType
s between 2 projects.Here is a link listing existing OSLC association types:
- Jazz wiki: https://jazz.net/wiki/bin/view/Main/CALM2010LinkTypes
The set of supported association types can be restricted to a subset using a
ProcessScope
instance, that all methods returning association types in this class will use.- Since:
- 1.7.0
- See Also:
ProcessScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssociationType.Direction
-
Enum Constant Summary
Enum Constants Enum Constant Description ARCHITECTED_BY
ARCHITECTS
ELABORATED_BY
ELABORATES
IMPLEMENTED_BY
IMPLEMENTS
RELATED_TO
RELATED_TO_RM
TESTED_BY
TESTS
TRACKED_BY
TRACKED_BY_CM
TRACKS
TRACKS_RM
VALIDATED_BY
VALIDATED_BY_ARCHITECTURE_ELEMENTS
VALIDATES
VALIDATES_ARCHITECTURE_ELEMENTS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<AssociationType>
forDomains(URI localDomain, URI friendDomain)
Returns the supported association types available between the 2 given domains.static AssociationType
forIdentifier(String identifier)
Returns the association type for the given identifier.AssociationType
getBackAssociation()
AssociationType.Direction
getDirection()
String
getIdentifier()
URI
getSourceDomain()
URI
getTargetDomain()
String
getTitle(List<Locale> locales)
static Collection<AssociationType>
supportedValues()
Returns the association types that are supported, as determined byProcessScope
.static AssociationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AssociationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TESTED_BY
public static final AssociationType TESTED_BY
-
TESTS
public static final AssociationType TESTS
-
TRACKS
public static final AssociationType TRACKS
-
TRACKED_BY
public static final AssociationType TRACKED_BY
-
VALIDATES
public static final AssociationType VALIDATES
-
VALIDATED_BY
public static final AssociationType VALIDATED_BY
-
VALIDATES_ARCHITECTURE_ELEMENTS
public static final AssociationType VALIDATES_ARCHITECTURE_ELEMENTS
-
VALIDATED_BY_ARCHITECTURE_ELEMENTS
public static final AssociationType VALIDATED_BY_ARCHITECTURE_ELEMENTS
-
IMPLEMENTS
public static final AssociationType IMPLEMENTS
-
IMPLEMENTED_BY
public static final AssociationType IMPLEMENTED_BY
-
TRACKS_RM
public static final AssociationType TRACKS_RM
-
TRACKED_BY_CM
public static final AssociationType TRACKED_BY_CM
-
RELATED_TO
public static final AssociationType RELATED_TO
-
ARCHITECTED_BY
public static final AssociationType ARCHITECTED_BY
-
ARCHITECTS
public static final AssociationType ARCHITECTS
-
ELABORATES
public static final AssociationType ELABORATES
-
ELABORATED_BY
public static final AssociationType ELABORATED_BY
-
RELATED_TO_RM
public static final AssociationType RELATED_TO_RM
-
-
Method Detail
-
values
public static AssociationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AssociationType c : AssociationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssociationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
supportedValues
public static Collection<AssociationType> supportedValues()
Returns the association types that are supported, as determined byProcessScope
.- Returns:
- the supported association types.
- Since:
- 1.9.0
- See Also:
ProcessScope
-
forDomains
public static Collection<AssociationType> forDomains(URI localDomain, URI friendDomain)
Returns the supported association types available between the 2 given domains.- Parameters:
localDomain
- the domain of the local projectfriendDomain
- the domain of the friend's project- Returns:
- the supported association types
-
forIdentifier
public static AssociationType forIdentifier(String identifier)
Returns the association type for the given identifier.- Parameters:
identifier
- the association type identifier- Returns:
- the association type
- Throws:
IllegalArgumentException
- if the given identifier is not a supported association type
-
getIdentifier
public String getIdentifier()
-
getDirection
public AssociationType.Direction getDirection()
-
getSourceDomain
public URI getSourceDomain()
-
getTargetDomain
public URI getTargetDomain()
-
getBackAssociation
public AssociationType getBackAssociation()
-
-