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.Object
Object containing single filter.
-
-
Field Summary
Fields Modifier and Type Field Description private Filter
filter
The filter.private Filter.LeftPart
lP
The l P.private Filter.Operand
op
The op.private Filter.RightPart
rP
The 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.LeftPart
getLeftPart()
Gets the left part.Filter.Operand
getOperand()
Gets the operand.Filter.RightPart
getRightPart()
Gets the right part.boolean
hasLeftPart()
Checks for left part.boolean
hasOperand()
Checks for operand.boolean
hasRightPart()
Checks for right part.boolean
isAndFilter()
Checks if is and filter.boolean
isOrFilter()
Checks if is or filter.protected void
setIsAndFilter()
Sets the is and filter.protected void
setIsOrFilter()
Sets the is or filter.void
setLeftPart(Filter.LeftPart aLP)
Sets the left part.void
setOperand(Filter.Operand aOP)
Sets the operand.void
setRightPart(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.ParseException
Sets the is or filter.- Throws:
java.text.ParseException
- the parse exception
-
setIsAndFilter
protected void setIsAndFilter() throws java.text.ParseException
Sets 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
-
-