Enum Usage
- java.lang.Object
-
- java.lang.Enum<Usage>
-
- com.sodius.oslc.core.process.model.Usage
-
- All Implemented Interfaces:
Serializable
,Comparable<Usage>
public enum Usage extends Enum<Usage>
Describes usages available per domain.- Since:
- 3.1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
DEFECT
IMPLEMENTATION_REQUEST
QUALITY_TASK
REQUIREMENT_CHANGE_REQUEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<Usage>
forDomain(URI domain)
Returns the usages for the given domain.static Collection<Usage>
forResourceType(URI resourceType)
Returns the usages for the given resource type.static Usage
forUsageUri(URI usageUri)
Returns the usage for the given usage URI.URI
getDomain()
URI
getResourceType()
String
getResourceTypeLabel(List<Locale> locales)
URI
getUsage()
String
getUsageLabel(List<Locale> locales)
static Usage
valueOf(String name)
Returns the enum constant of this type with the specified name.static Usage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
getDomain
public URI getDomain()
-
getUsage
public URI getUsage()
-
getResourceType
public URI getResourceType()
-
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.
-
-