Enum Class ResourceType
- All Implemented Interfaces:
Serializable,Comparable<ResourceType>,java.lang.constant.Constable
Describes an OSLC resource type that can be the source or target of link types.
- Since:
- 3.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArchitecture Resource -http://open-services.net/ns/am#Resource, from Architecture Management domain.Change Request -http://open-services.net/ns/cm#ChangeRequest, from Change Management domain.Change Set -http://open-services.net/ns/config#ChangeSet, from Configuration Management domain.Deliverable -http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/Deliverable, from Change Management domain.Requirement -http://open-services.net/ns/rm#Requirement, from Requirement Management domain.Requirement Collection -http://open-services.net/ns/rm#RequirementCollection, from Requirement Management domain.Test Case -http://open-services.net/ns/qm#TestCase, from Quality Management domain.Test Execution Record -http://open-services.net/ns/qm#TestExecutionRecord, from Quality Management domain.Test Plan -http://open-services.net/ns/qm#TestPlan, from Quality Management domain.Test Result -http://open-services.net/ns/qm#TestResult, from Quality Management domain.Test Script -http://open-services.net/ns/qm#TestScript, from Quality Management domain. -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<ResourceType>Returns the collection of resource types defined by the given domain.Gets the children resource types of this type.Returns the domain defining this type.Gets the optional parent type of this type.Returns the title of the resource type, e.g.getURI()Return the URI of the resource type, e.g.booleanisCompatibleWith(ResourceType resourceType) Determines whether this type is compatible with anotherResourceType.static Collection<ResourceType>Returns the resources types that are supported, the ones whose artifacts can be managed in the local application, as determined byProcessScope.static ResourceTypeReturns the enum constant of this class with the specified name.static ResourceTypeReturns the resource type matching the given URI.static ResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARCHITECTURE_RESOURCE
Architecture Resource -http://open-services.net/ns/am#Resource, from Architecture Management domain. -
CHANGE_REQUEST
Change Request -http://open-services.net/ns/cm#ChangeRequest, from Change Management domain. -
CHANGE_SET
Change Set -http://open-services.net/ns/config#ChangeSet, from Configuration Management domain. -
DELIVERABLE
Deliverable -http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/Deliverable, from Change Management domain.- Since:
- 4.0.0
-
REQUIREMENT
Requirement -http://open-services.net/ns/rm#Requirement, from Requirement Management domain. -
REQUIREMENT_COLLECTION
Requirement Collection -http://open-services.net/ns/rm#RequirementCollection, from Requirement Management domain. -
TEST_CASE
Test Case -http://open-services.net/ns/qm#TestCase, from Quality Management domain. -
TEST_EXECUTION_RECORD
Test Execution Record -http://open-services.net/ns/qm#TestExecutionRecord, from Quality Management domain. -
TEST_PLAN
Test Plan -http://open-services.net/ns/qm#TestPlan, from Quality Management domain. -
TEST_RESULT
Test Result -http://open-services.net/ns/qm#TestResult, from Quality Management domain. -
TEST_SCRIPT
Test Script -http://open-services.net/ns/qm#TestScript, from Quality Management domain.
-
-
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
-
supportedValues
Returns the resources types that are supported, the ones whose artifacts can be managed in the local application, as determined byProcessScope.- Returns:
- the supported resource types.
- See Also:
-
valueOf
Returns the resource type matching the given URI.- Parameters:
uri- the URI of a resource type.- Returns:
- the corresponding resource type.
- Throws:
IllegalArgumentException- if the URI does not match any resource type.
-
forDomain
Returns the collection of resource types defined by the given domain.This returned collection is not restricted to supported types only. Depending on the need, caller may filter the resulting collection with
ProcessScope.contains(ResourceType).- Parameters:
domain- an OSLC domain- Returns:
- the list of types defined in the given domain
-
getURI
Return the URI of the resource type, e.g.http://open-services.net/ns/cm#ChangeRequest- Returns:
- the domain URI.
-
getDomain
Returns the domain defining this type.- Returns:
- the domain defining this type.
-
getParent
Gets the optional parent type of this type.- Returns:
- an empty
Optionalif this type has no parent; the contained reference otherwise.
-
getChildren
Gets the children resource types of this type.- Returns:
- children resource types of this type.
-
getTitle
Returns the title of the resource type, e.g."Change Request".- Parameters:
locales- the ordered languages of preference for the title, or an empty list to default to English.- Returns:
- the resource type title.
-
isCompatibleWith
Determines whether this type is compatible with anotherResourceType.- Parameters:
resourceType- the resource type to verify.- Returns:
trueifresourceTypeis equal or parent/ancestor of this type;falseotherwise.
-