Enum Class AssociationType

java.lang.Object
java.lang.Enum<AssociationType>
com.sodius.oslc.core.process.model.AssociationType
All Implemented Interfaces:
Serializable, Comparable<AssociationType>, java.lang.constant.Constable

public enum AssociationType extends Enum<AssociationType>
Describes a type of ProjectAreaAssociation.

An association type gives access to a set of LinkTypes 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:
  • Enum Constant Details

  • Method Details

    • values

      public static AssociationType[] 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

      public static AssociationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • supportedValues

      public static Collection<AssociationType> supportedValues()
      Returns the association types that are supported, as determined by ProcessScope.
      Returns:
      the supported association types.
      Since:
      1.9.0
      See Also:
    • 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 project
      friendDomain - 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()
    • getTitle

      public String getTitle(List<Locale> locales)
    • getDirection

      public AssociationType.Direction getDirection()
    • getSourceDomain

      public URI getSourceDomain()
    • getTargetDomain

      public URI getTargetDomain()
    • getBackAssociation

      public AssociationType getBackAssociation()