org.eml.MMAX2.annotation.query
Class MMAX2QueryTree

java.lang.Object
  extended by org.eml.MMAX2.annotation.query.MMAX2QueryTree

public class MMAX2QueryTree
extends java.lang.Object

A MMAX2QueryTree represents a query concerning _one_ MarkableLevel.


Constructor Summary
MMAX2QueryTree(java.lang.String _query, MarkableLevel _level)
          Creates new MMAX2QueryTree
 
Method Summary
 java.util.ArrayList execute()
          This method executes the query described by this MMAX2QueryTree.
 java.util.ArrayList execute(java.util.Comparator comp)
          This method executes the query described by this MMAX2QueryTree.
static java.util.ArrayList intersect(java.util.ArrayList[] lists)
          This method accepts an abitrary number of ArrayLists of Markables and returns a list resulting from the intersection of all.
static java.util.ArrayList invert(java.util.ArrayList invertee, java.util.ArrayList background)
           
static java.util.ArrayList[] invertAll(java.util.ArrayList[] invertees, java.util.ArrayList background)
           
static void main(java.lang.String[] args)
           
static java.util.ArrayList merge(java.util.ArrayList[] lists)
          This method accepts an abitrary number of ArrayLists of Markables and returns the list resulting from the merge of all.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMAX2QueryTree

public MMAX2QueryTree(java.lang.String _query,
                      MarkableLevel _level)
               throws MMAX2QueryException
Creates new MMAX2QueryTree

Throws:
MMAX2QueryException
Method Detail

execute

public final java.util.ArrayList execute()
This method executes the query described by this MMAX2QueryTree. It returns an ArrayList of Markables matching the query.


execute

public final java.util.ArrayList execute(java.util.Comparator comp)
This method executes the query described by this MMAX2QueryTree. It returns an ArrayList of Markables matching the query.


main

public static final void main(java.lang.String[] args)

invert

public static final java.util.ArrayList invert(java.util.ArrayList invertee,
                                               java.util.ArrayList background)

invertAll

public static final java.util.ArrayList[] invertAll(java.util.ArrayList[] invertees,
                                                    java.util.ArrayList background)

merge

public static final java.util.ArrayList merge(java.util.ArrayList[] lists)
This method accepts an abitrary number of ArrayLists of Markables and returns the list resulting from the merge of all.


intersect

public static final java.util.ArrayList intersect(java.util.ArrayList[] lists)
This method accepts an abitrary number of ArrayLists of Markables and returns a list resulting from the intersection of all.