org.objectweb.medor.query.lib
Class MemberOfHelper
java.lang.Object
org.objectweb.medor.query.lib.MemberOfHelper
public class MemberOfHelper
extends java.lang.Object
The MemberOfHelper class offers methods to manipulate MemberOf operators.
static void | addMemberOf(QueryNode qn, List mofLeft, List mofRight) - Adds a MemberOf to a query node, given the left and right ArrayLists.
|
logger
public static Logger logger
addMemberOf
public static void addMemberOf(QueryNode qn,
List mofLeft,
List mofRight)
throws MedorException,
MalformedExpressionException
Adds a MemberOf to a query node, given the left and right ArrayLists.
If the QueryNode already has an expression, the MemberOf is appended with
and And.
The field operands may, in this case, be on the same (lower level) query
node. If this is the case, this method tries to un-propagates the right
propagated field if possible, and places the MemberOf on this (lower
level) query node.
It is assumed that all left fields are on the same query node, and all
right fields are on the same query node.
qn
- the QueryNode on which to add the MemberOfmofLeft
- the ArrayList of field operands for the left part of the
MemberOfmofRight
- the ArrayList of field operands for the right part of the
MemberOf