|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.query.lib.MemberOfHelper
The MemberOfHelper class offers methods to manipulate MemberOf operators.
Field Summary | |
static Logger |
logger
|
Constructor Summary | |
MemberOfHelper()
|
Method Summary | |
static void |
addMemberOf(QueryNode qn,
java.util.List mofLeft,
java.util.List mofRight)
Adds a MemberOf to a query node, given the left and right ArrayLists. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Logger logger
Constructor Detail |
public MemberOfHelper()
Method Detail |
public static void addMemberOf(QueryNode qn, java.util.List mofLeft, java.util.List mofRight) throws MedorException, MalformedExpressionException
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
MalformedExpressionException
- returned by the MemberOf
construction
MedorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |