public class LogicalCondition extends java.lang.Object implements Condition
getParameters()
returns parameters of nested conditions.
Modifier and Type | Class and Description |
---|---|
static class |
LogicalCondition.Type |
Constructor and Description |
---|
LogicalCondition(LogicalCondition.Type type) |
Modifier and Type | Method and Description |
---|---|
Condition |
actualize(java.util.Set<java.lang.String> actualParameters)
Returns the condition if the argument contains all parameters specified in the condition.
|
LogicalCondition |
add(Condition condition) |
static LogicalCondition |
and() |
Condition |
copy()
Returns a deep copy of this condition.
|
java.util.List<Condition> |
getConditions() |
java.util.Collection<java.lang.String> |
getParameters()
Returns parameters specified in the condition.
|
LogicalCondition.Type |
getType() |
static LogicalCondition |
or() |
void |
setConditions(java.util.List<Condition> conditions) |
void |
setType(LogicalCondition.Type type) |
java.lang.String |
toString() |
public LogicalCondition(LogicalCondition.Type type)
public static LogicalCondition and()
public static LogicalCondition or()
public LogicalCondition.Type getType()
public void setType(LogicalCondition.Type type)
public java.util.List<Condition> getConditions()
public void setConditions(java.util.List<Condition> conditions)
public LogicalCondition add(Condition condition)
public java.util.Collection<java.lang.String> getParameters()
Condition
getParameters
in interface Condition
@Nullable public Condition actualize(java.util.Set<java.lang.String> actualParameters)
Condition
public Condition copy()
Condition
public java.lang.String toString()
toString
in class java.lang.Object