org.semanticweb.owlapi.owllink.builtin.response
Interface ResponseMessage

All Superinterfaces:
java.lang.Iterable<Response>

public interface ResponseMessage
extends java.lang.Iterable<Response>

Represents a bundle of Responses. Corresponds to ResponseMessage in the OWLlink specification. Author: Olaf Noppens Date: 26.10.2009


Method Summary
 Response get(int index)
          Returns the response at the given index.
 OWLlinkErrorResponseException getError(int index)
           
 OWLlinkErrorResponseException getError(Request request)
           
<R extends Response>
R
getResponse(Request<R> request)
           
 boolean hasError()
           
 boolean hasErrorResponse(Request request)
           
 boolean isErrorResponse(int index)
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

get

Response get(int index)
             throws OWLlinkErrorResponseException
Returns the response at the given index. If the response is an OWLlink ErrorResponse an OWLlinkErrorResponseException will be thrown.

Parameters:
index - position of the Response
Returns:
Response
Throws:
OWLlinkErrorResponseException - if the Response represents an ErrorResponse

getError

OWLlinkErrorResponseException getError(int index)

isErrorResponse

boolean isErrorResponse(int index)

hasError

boolean hasError()

getResponse

<R extends Response> R getResponse(Request<R> request)
                               throws OWLlinkErrorResponseException
Throws:
OWLlinkErrorResponseException

hasErrorResponse

boolean hasErrorResponse(Request request)

getError

OWLlinkErrorResponseException getError(Request request)