Class Filter.Expression
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.utils.Filter.Expression
-
- Enclosing class:
- Filter
public class Filter.Expression extends java.lang.ObjectObject containing single filter.
-
-
Field Summary
Fields Modifier and Type Field Description private FilterfilterThe filter.private Filter.LeftPartlPThe l P.private Filter.OperandopThe op.private Filter.RightPartrPThe r P.
-
Constructor Summary
Constructors Constructor Description Expression(Filter aFilter)Instantiates a new expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter.LeftPartgetLeftPart()Gets the left part.Filter.OperandgetOperand()Gets the operand.Filter.RightPartgetRightPart()Gets the right part.booleanhasLeftPart()Checks for left part.booleanhasOperand()Checks for operand.booleanhasRightPart()Checks for right part.booleanisAndFilter()Checks if is and filter.booleanisOrFilter()Checks if is or filter.protected voidsetIsAndFilter()Sets the is and filter.protected voidsetIsOrFilter()Sets the is or filter.voidsetLeftPart(Filter.LeftPart aLP)Sets the left part.voidsetOperand(Filter.Operand aOP)Sets the operand.voidsetRightPart(Filter.RightPart aRP)Sets the right part.
-
-
-
Field Detail
-
lP
private Filter.LeftPart lP
The l P.
-
rP
private Filter.RightPart rP
The r P.
-
op
private Filter.Operand op
The op.
-
filter
private Filter filter
The filter.
-
-
Constructor Detail
-
Expression
public Expression(Filter aFilter)
Instantiates a new expression.- Parameters:
aFilter- the a filter
-
-
Method Detail
-
setIsOrFilter
protected void setIsOrFilter() throws java.text.ParseExceptionSets the is or filter.- Throws:
java.text.ParseException- the parse exception
-
setIsAndFilter
protected void setIsAndFilter() throws java.text.ParseExceptionSets the is and filter.- Throws:
java.text.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
public void setLeftPart(Filter.LeftPart aLP)
Sets the left part.- Parameters:
aLP- the new left part
-
setRightPart
public void setRightPart(Filter.RightPart aRP)
Sets the right part.- Parameters:
aRP- the new right part
-
setOperand
public void setOperand(Filter.Operand aOP)
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
public Filter.LeftPart getLeftPart()
Gets the left part.- Returns:
- the left part
-
getRightPart
public Filter.RightPart getRightPart()
Gets the right part.- Returns:
- the right part
-
getOperand
public Filter.Operand getOperand()
Gets the operand.- Returns:
- the operand
-
-