Enum Class Usage
- All Implemented Interfaces:
Serializable,Comparable<Usage>,java.lang.constant.Constable
Describes usages available per domain.
- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Usage> Returns the usages for the given domain.static UsageforLinkType(LinkType linkType) Resolves the corresponding Usage for a givenLinkType.static Collection<Usage> forResourceType(URI resourceType) Returns the usages for the given resource type.static UsageforUsageUri(URI usageUri) Returns the usage for the given usage URI.getResourceTypeLabel(List<Locale> locales) getUsage()getUsageLabel(List<Locale> locales) static UsageReturns the enum constant of this class with the specified name.static Usage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
DEFECT
-
IMPLEMENTATION_REQUEST
-
QUALITY_TASK
-
REQUIREMENT_CHANGE_REQUEST
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDomain
-
getUsage
-
forLinkType
Resolves the corresponding Usage for a givenLinkType.- Parameters:
linkType- the givenLinkType.- Returns:
- the corresponding Usage for
linkType. - Since:
- 3.7.0
-
getResourceType
-
getUsageLabel
-
getResourceTypeLabel
-
forDomain
Returns the usages for the given domain.- Parameters:
domain- the domain- Returns:
- the usages for the given domain.
-
forResourceType
Returns the usages for the given resource type.- Parameters:
resourceType- the resource type- Returns:
- the usages for the given resource type.
-
forUsageUri
Returns the usage for the given usage URI.- Parameters:
usageUri- the usage URI- Returns:
- the Usage for the given usage URI.
-