Enum Usage

    • Enum Constant Detail

      • 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 Detail

      • values

        public static Usage[] 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 (Usage c : Usage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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

        public URI getDomain()
      • getUsage

        public URI getUsage()
      • getResourceType

        public URI getResourceType()
      • 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.