net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion
Class Junction
java.lang.Object
net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.Junction
- All Implemented Interfaces:
- Serializable, Criterion
- Direct Known Subclasses:
- Conjunction, Disjunction
public class Junction
- extends Object
- implements Criterion
A sequence of a logical expressions combined by some associative logical operator
- Version:
- $Id: Junction.java 3285 2011-01-24 18:10:19Z fgiust $
- Author:
- Federico Grilli
- See Also:
- Serialized Form
Junction
protected Junction(String op)
add
public Junction add(Criterion criterion)
- Adds a criterion to this Junction
- Parameters:
criterion - Criterion to add
- Returns:
- Junction
getOp
public String getOp()
toXPathString
public String toXPathString(Criteria crit)
throws JCRQueryException
- Render the XPath fragment
- Specified by:
toXPathString in interface Criterion
- Parameters:
crit - input criteria
- Returns:
- converted XPATH expression
- Throws:
JCRQueryException - if there is a problem converting the input criteria to a valid xpath expression
toString
public String toString()
-
- Overrides:
toString in class Object
isEmpty
public boolean isEmpty()
- Returns:
- true if this Criterion contains at least one expression, false otherwise
Copyright © 2009-2011 Openmind. All Rights Reserved.