Class Filter.Expression
java.lang.Object
org.apache.uima.collection.impl.cpm.utils.Filter.Expression
- Enclosing class:
Filter
Object containing single filter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FilterThe filter.private Filter.LeftPartThe l P.private Filter.OperandThe op.private Filter.RightPartThe r P. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the left part.Gets the operand.Gets the right part.booleanChecks for left part.booleanChecks for operand.booleanChecks for right part.booleanChecks if is and filter.booleanChecks if is or filter.protected voidSets the is and filter.protected voidSets the is or filter.voidSets the left part.voidsetOperand(Filter.Operand aOP) Sets the operand.voidSets the right part.
-
Field Details
-
lP
The l P. -
rP
The r P. -
op
The op. -
filter
The filter.
-
-
Constructor Details
-
Expression
Instantiates a new expression.- Parameters:
aFilter- the a filter
-
-
Method Details
-
setIsOrFilter
Sets the is or filter.- Throws:
ParseException- the parse exception
-
setIsAndFilter
Sets the is and filter.- Throws:
ParseException- the parse exception
-
isOrFilter
public boolean isOrFilter()Checks if is or filter.- Returns:
- true, if is or filter
-
isAndFilter
public boolean isAndFilter()Checks if is and filter.- Returns:
- true, if is and filter
-
setLeftPart
Sets the left part.- Parameters:
aLP- the new left part
-
setRightPart
Sets the right part.- Parameters:
aRP- the new right part
-
setOperand
Sets the operand.- Parameters:
aOP- the new operand
-
hasLeftPart
public boolean hasLeftPart()Checks for left part.- Returns:
- true, if successful
-
hasRightPart
public boolean hasRightPart()Checks for right part.- Returns:
- true, if successful
-
hasOperand
public boolean hasOperand()Checks for operand.- Returns:
- true, if successful
-
getLeftPart
Gets the left part.- Returns:
- the left part
-
getRightPart
Gets the right part.- Returns:
- the right part
-
getOperand
Gets the operand.- Returns:
- the operand
-