Class Filter.Expression
java.lang.Object
org.apache.uima.collection.impl.cpm.utils.Filter.Expression
- Enclosing class:
Filter
Object containing single filter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the left part.Gets the operand.Gets the right part.boolean
Checks for left part.boolean
Checks for operand.boolean
Checks for right part.boolean
Checks if is and filter.boolean
Checks if is or filter.protected void
Sets the is and filter.protected void
Sets the is or filter.void
Sets the left part.void
setOperand
(Filter.Operand aOP) Sets the operand.void
Sets the right part.
-
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
-