Enum Class Usage

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

public enum Usage extends Enum<Usage>
Describes usages available per domain.
Since:
3.1.0
  • Enum Constant Details

    • DEFAULT

      public static final Usage DEFAULT
    • DEFECT

      public static final Usage DEFECT
    • IMPLEMENTATION_REQUEST

      public static final Usage IMPLEMENTATION_REQUEST
    • QUALITY_TASK

      public static final Usage QUALITY_TASK
    • REQUIREMENT_CHANGE_REQUEST

      public static final Usage REQUIREMENT_CHANGE_REQUEST
  • Method Details

    • values

      public static Usage[] 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 Usage 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
    • getDomain

      public URI getDomain()
    • getUsage

      public URI getUsage()
    • forLinkType

      public static Usage forLinkType(LinkType linkType)
      Resolves the corresponding Usage for a given LinkType.
      Parameters:
      linkType - the given LinkType.
      Returns:
      the corresponding Usage for linkType.
      Since:
      3.7.0
    • getResourceType

      public URI getResourceType()
    • getUsageLabel

      public String getUsageLabel(List<Locale> locales)
    • getResourceTypeLabel

      public String getResourceTypeLabel(List<Locale> locales)
    • forDomain

      public static Collection<Usage> forDomain(URI domain)
      Returns the usages for the given domain.
      Parameters:
      domain - the domain
      Returns:
      the usages for the given domain.
    • forResourceType

      public static Collection<Usage> forResourceType(URI resourceType)
      Returns the usages for the given resource type.
      Parameters:
      resourceType - the resource type
      Returns:
      the usages for the given resource type.
    • forUsageUri

      public static Usage forUsageUri(URI usageUri)
      Returns the usage for the given usage URI.
      Parameters:
      usageUri - the usage URI
      Returns:
      the Usage for the given usage URI.