Package com.sodius.oslc.app.dng.requests
Class GetAttributeType
- java.lang.Object
-
- com.sodius.oslc.client.requests.AbstractResourceRequest<ResourceResponse<AttributeType>>
-
- com.sodius.oslc.app.dng.requests.GetAttributeType
-
- All Implemented Interfaces:
ResourceRequest<ResourceResponse<AttributeType>>
,Callable<ResourceResponse<AttributeType>>
public class GetAttributeType extends AbstractResourceRequest<ResourceResponse<AttributeType>>
Reads the content of a DOORS Next attribute type.Each requirement is described by a resource shape. The resource shape provides a collection of properties, to define the attributes and links available for the requirement. A property may provide a range, which may reference a custom attribute type defined by the project administrator in DOORS Next. This request is notably useful to determine the literals defined for an enumeration type, for example to later update a requirement with a proper literal URI.
- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description GetAttributeType(OslcClient client, URI uri)
Creates a request to read the content of a DOORS Next attribute type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientResponse
call(OslcResource resource)
protected ResourceResponse<AttributeType>
createResponse(OslcResource resource, ClientResponse response)
-
Methods inherited from class com.sodius.oslc.client.requests.AbstractResourceRequest
call, createErrorResponse, createResourceResponse, getClient, getUri
-
-
-
-
Constructor Detail
-
GetAttributeType
public GetAttributeType(OslcClient client, URI uri)
Creates a request to read the content of a DOORS Next attribute type.- Parameters:
client
- the OSLC client to connect to the application.uri
- the URI of a DOORS Next attribute type. A oslc_config.context parameter can be added to this URI for using a specific configuration.
-
-
Method Detail
-
call
protected ClientResponse call(OslcResource resource)
- Specified by:
call
in classAbstractResourceRequest<ResourceResponse<AttributeType>>
-
createResponse
protected ResourceResponse<AttributeType> createResponse(OslcResource resource, ClientResponse response)
- Specified by:
createResponse
in classAbstractResourceRequest<ResourceResponse<AttributeType>>
-
-