public class Conditions
extends java.lang.Object
Condition
.
The Condition elements are simple expresions, the Conditions are composed expresions.Constructor and Description |
---|
Conditions()
Default constructor
|
Conditions(org.w3c.dom.Node XMLConds)
Buils a Conditions object from XML
|
Modifier and Type | Method and Description |
---|---|
void |
addCondition(Condition Cond)
Adds a condition to the current level/set
|
void |
addCondition(Conditions ListCond)
Adds Conditions to the current level/set
|
java.lang.Object |
Cond(int n)
Return the condition n of the current set
|
boolean |
isInvert() |
boolean |
isOperatorAnd()
Returns if all the set of Condition(s) at the current level has operator AND or OR.
|
int |
NumCond()
Returns the number of condition(s) in the current level/set
|
void |
setInvert(boolean pInvert) |
void |
setOperatorAnd(boolean OperatorAnd)
When true all the set of Condition(s) at the current level has operator AND otherwise they have OR between Conditions
|
boolean |
UsedAttr(java.lang.String Attrname)
Check if any Condition or Conditions at ANY level includes the column Attrname as search criteria
|
public Conditions()
public Conditions(org.w3c.dom.Node XMLConds) throws PDException
XMLConds
- with XML conditionsPDException
- in any errorpublic final void addCondition(Condition Cond)
Cond
- Condition to add see Condition
public final void addCondition(Conditions ListCond)
ListCond
- Conditions to addpublic int NumCond()
public java.lang.Object Cond(int n)
n
- Number of condition to returnpublic boolean isOperatorAnd()
public final void setOperatorAnd(boolean OperatorAnd)
OperatorAnd
- the OperatorAnd to set.public boolean UsedAttr(java.lang.String Attrname)
Attrname
- name to ccheckpublic boolean isInvert()
public void setInvert(boolean pInvert)
pInvert
- when true, the next conditions are inverted: NOT (cond)