public enum AssociationType extends Enum<AssociationType>
ProjectAreaAssociation
.
An association type gives access to a set of LinkType
s between 2 projects.
Here is a link listing existing OSLC association types:
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.
ProcessScope
Modifier and Type | Class and Description |
---|---|
static class |
AssociationType.Direction |
Enum Constant and 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 |
Modifier and Type | Method and 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 by
ProcessScope . |
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.
|
public static final AssociationType TESTED_BY
public static final AssociationType TESTS
public static final AssociationType TRACKS
public static final AssociationType TRACKED_BY
public static final AssociationType VALIDATES
public static final AssociationType VALIDATED_BY
public static final AssociationType VALIDATES_ARCHITECTURE_ELEMENTS
public static final AssociationType VALIDATED_BY_ARCHITECTURE_ELEMENTS
public static final AssociationType IMPLEMENTS
public static final AssociationType IMPLEMENTED_BY
public static final AssociationType TRACKS_RM
public static final AssociationType TRACKED_BY_CM
public static final AssociationType RELATED_TO
public static final AssociationType ARCHITECTED_BY
public static final AssociationType ARCHITECTS
public static final AssociationType ELABORATES
public static final AssociationType ELABORATED_BY
public static final AssociationType RELATED_TO_RM
public static AssociationType[] values()
for (AssociationType c : AssociationType.values()) System.out.println(c);
public static AssociationType 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<AssociationType> supportedValues()
ProcessScope
.ProcessScope
public static Collection<AssociationType> forDomains(URI localDomain, URI friendDomain)
localDomain
- the domain of the local projectfriendDomain
- the domain of the friend's projectpublic static AssociationType forIdentifier(String identifier)
identifier
- the association type identifierIllegalArgumentException
- if the given identifier is not a supported association typepublic String getIdentifier()
public AssociationType.Direction getDirection()
public URI getSourceDomain()
public URI getTargetDomain()
public AssociationType getBackAssociation()