uk.ac.ic.doc.automed.reasoner
Class DefaultDIGQueryResponse

java.lang.Object
  extended by uk.ac.ic.doc.automed.reasoner.DefaultDIGQueryResponse
All Implemented Interfaces:
DIGQueryResponse

public class DefaultDIGQueryResponse
extends java.lang.Object
implements DIGQueryResponse

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Jul 20, 2004

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm


Field Summary
private  org.w3c.dom.Element element
           
private  Schema s
           
 
Constructor Summary
DefaultDIGQueryResponse(Schema s)
           
 
Method Summary
 boolean getBoolean()
          If the query resultied in a boolean response, for example asking if a concept was satisfiable, then this method may be used to get the boolean result.
 java.util.Collection getConcepts()
          If the query resulted in a concept set response type for example a query for super concepts then this method can be used to get the concepts.
 java.lang.String getID()
          Gets the ID of the query that the reponse corresponds to
 java.util.Collection getIndividuals()
          If the query resulted in an individual set response type then this method may be used to obtain the individuals in the response.
 void setElement(org.w3c.dom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

private org.w3c.dom.Element element

s

private Schema s
Constructor Detail

DefaultDIGQueryResponse

public DefaultDIGQueryResponse(Schema s)
Method Detail

setElement

public void setElement(org.w3c.dom.Element element)

getID

public java.lang.String getID()
Description copied from interface: DIGQueryResponse
Gets the ID of the query that the reponse corresponds to

Specified by:
getID in interface DIGQueryResponse

getConcepts

public java.util.Collection getConcepts()
Description copied from interface: DIGQueryResponse
If the query resulted in a concept set response type for example a query for super concepts then this method can be used to get the concepts.

Specified by:
getConcepts in interface DIGQueryResponse
Returns:
A Collection of RDFSClasss

getIndividuals

public java.util.Collection getIndividuals()
Description copied from interface: DIGQueryResponse
If the query resulted in an individual set response type then this method may be used to obtain the individuals in the response.

Specified by:
getIndividuals in interface DIGQueryResponse
Returns:
A Collection of RDFIndividuals

getBoolean

public boolean getBoolean()
Description copied from interface: DIGQueryResponse
If the query resultied in a boolean response, for example asking if a concept was satisfiable, then this method may be used to get the boolean result.

Specified by:
getBoolean in interface DIGQueryResponse