org.weblab_project.core.model.query
Class ResultSet

java.lang.Object
  extended by org.weblab_project.core.model.Resource
      extended by org.weblab_project.core.model.query.ResultSet
All Implemented Interfaces:
java.io.Serializable

public class ResultSet
extends Resource
implements java.io.Serializable

A ResultSet is specific resource to described result of a Query. The results should be described semantically in the PoK linked to the ResultSet. See the WebLab ontology for the property on ResultSet. Additional and specific information could be added for results presentation in the Resources list. As a Resource, a ResultSet could be annotated to provide more information. But any information about the results by themselves and the query shall be in pok field. Data Exchange Model for WebLab platform provided by EADS Core package - Version 1.1 - 2009/05

Java class for resultSet complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="resultSet">
   <complexContent>
     <extension base="{http://weblab-project.org/core/model/}resource">
       <sequence>
         <element name="pok" type="{http://weblab-project.org/core/model/}pieceOfKnowledge" minOccurs="0"/>
         <element name="resource" type="{http://weblab-project.org/core/model/}resource" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  PieceOfKnowledge pok
           
protected  java.util.List<Resource> resource
           
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
ResultSet()
           
 
Method Summary
 PieceOfKnowledge getPok()
          Gets the value of the pok property.
 java.util.List<Resource> getResource()
          Gets the value of the resource property.
 void setPok(PieceOfKnowledge value)
          Sets the value of the pok property.
 
Methods inherited from class org.weblab_project.core.model.Resource
getAnnotation, getDescriptor, getUri, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pok

protected PieceOfKnowledge pok

resource

protected java.util.List<Resource> resource
Constructor Detail

ResultSet

public ResultSet()
Method Detail

getPok

public PieceOfKnowledge getPok()
Gets the value of the pok property.

Returns:
possible object is PieceOfKnowledge

setPok

public void setPok(PieceOfKnowledge value)
Sets the value of the pok property.

Parameters:
value - allowed object is PieceOfKnowledge

getResource

public java.util.List<Resource> getResource()
Gets the value of the resource property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resource property.

For example, to add a new item, do as follows:

    getResource().add(newItem);
 

Objects of the following type(s) are allowed in the list Resource



Copyright © 2004-2010. All Rights Reserved.