Enum AssociationType

  • All Implemented Interfaces:
    Serializable, Comparable<AssociationType>

    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:
    ProcessScope
    • 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 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:
        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 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()
      • getSourceDomain

        public URI getSourceDomain()
      • getTargetDomain

        public URI getTargetDomain()