org.weblab_project.core.model.query
Class SimilarityQuery

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

public class SimilarityQuery
extends ElementaryQuery
implements java.io.Serializable

This query is dedicated for search by similarity and thus its content is one or more resources. Data Exchange Model for WebLab platform provided by EADS Query package - Version 1.1 - 2009/05

Java class for similarityQuery complex type.

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

 <complexType name="similarityQuery">
   <complexContent>
     <extension base="{http://weblab-project.org/core/model/query}elementaryQuery">
       <sequence>
         <element name="resource" type="{http://weblab-project.org/core/model/}resource" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.util.List<Resource> resource
           
 
Fields inherited from class org.weblab_project.core.model.query.ElementaryQuery
weight
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
SimilarityQuery()
           
 
Method Summary
 java.util.List<Resource> getResource()
          Gets the value of the resource property.
 
Methods inherited from class org.weblab_project.core.model.query.ElementaryQuery
getWeight, setWeight
 
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

resource

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

SimilarityQuery

public SimilarityQuery()
Method Detail

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-2009. All Rights Reserved.