org.weblab_project.core.model.query
Class ComposedQuery

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.ComposedQuery
All Implemented Interfaces:
java.io.Serializable

public class ComposedQuery
extends Query
implements java.io.Serializable

This kind of query is only an aggregation of query using a n-ary boolean operator to combine them. Composing queries using various composed queries will enable to deal with brackets. Please note that when dealing with the operators AND and OR, the number of queries should be at least two to be used; used with a simple query it will have no effects. NOT is a unary operator, so the list of queries should be reduced to one, but when using it in a more-that-one-query list, a AND NOT operator will be used in fact. Data Exchange Model for WebLab platform provided by EADS Query package - Version 1.1 - 2009/05

Java class for composedQuery complex type.

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

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

See Also:
Serialized Form

Field Summary
protected  Operator operator
           
protected  java.util.List<Query> query
           
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
ComposedQuery()
           
 
Method Summary
 Operator getOperator()
          Gets the value of the operator property.
 java.util.List<Query> getQuery()
          Gets the value of the query property.
 void setOperator(Operator value)
          Sets the value of the operator 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

query

protected java.util.List<Query> query

operator

protected Operator operator
Constructor Detail

ComposedQuery

public ComposedQuery()
Method Detail

getQuery

public java.util.List<Query> getQuery()
Gets the value of the query 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 query property.

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

    getQuery().add(newItem);
 

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


getOperator

public Operator getOperator()
Gets the value of the operator property.

Returns:
possible object is Operator

setOperator

public void setOperator(Operator value)
Sets the value of the operator property.

Parameters:
value - allowed object is Operator


Copyright © 2004-2010. All Rights Reserved.