MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.query.optimizer
Class VarSearchTerms

java.lang.Object
  extended by ch.ethz.mxquery.query.optimizer.VarSearchTerms

public final class VarSearchTerms
extends java.lang.Object

Just a wrapper class for searching for specific variables.


Field Summary
static QName ALL_VARS
           
static QName ALL_VARS_EXCEPT_CONTEXT_ITEM
           
static QName CONTEXT_ITEM
           
 
Constructor Summary
VarSearchTerms(QName varName)
          Creates a new VarSearchTerm.
 
Method Summary
 boolean compareQNames(QName var)
          Compares two QNames.
 boolean compareVariables(VariableIterator varIter)
          Compare the variable with the QName in the object
static VarSearchTerms createVarSearchTerms(VariableIterator varIter)
          Factory to create new VarSearchTerms from a variable
static java.util.List createVarSearchTerms(WindowVariable[] windowVars)
          Creates VarSearchTerms from a list of Variable's
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_ITEM

public static final QName CONTEXT_ITEM

ALL_VARS_EXCEPT_CONTEXT_ITEM

public static final QName ALL_VARS_EXCEPT_CONTEXT_ITEM

ALL_VARS

public static final QName ALL_VARS
Constructor Detail

VarSearchTerms

public VarSearchTerms(QName varName)
Creates a new VarSearchTerm. Additional also ALL_VARS_EXCEPT_CONTEXT_ITEM and ALL_VARS can be used as valid VarSearchTerms

Parameters:
varName -
Method Detail

compareQNames

public boolean compareQNames(QName var)
Compares two QNames.

Parameters:
var -
Returns:
true if equals under the given comparison settings

compareVariables

public boolean compareVariables(VariableIterator varIter)
Compare the variable with the QName in the object

Parameters:
varIter -
Returns:
the comparison result of the QNames

createVarSearchTerms

public static VarSearchTerms createVarSearchTerms(VariableIterator varIter)
Factory to create new VarSearchTerms from a variable

Parameters:
varIter -
Returns:
A VarSearchTerm based on the variable names

createVarSearchTerms

public static java.util.List createVarSearchTerms(WindowVariable[] windowVars)
Creates VarSearchTerms from a list of Variable's

Parameters:
windowVars -
Returns:
a list of VarSearchTerms for the variables

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich