public class TLcdOGCBinaryLogicOperator extends TLcdDataObject implements ILcdOGCCondition
<ogc:BinaryLogicOpType>
.
Namely:
<ogc:And>
<ogc:Or>
TLcdOGCBinaryLogicOperator
instance is composed of a logic operation type that must be one of the constants
defined in this class and two or more ILcdOGCCondition
instances that represents the condition operands.Modifier and Type | Field and Description |
---|---|
static int |
AND
Logic operation type that corresponds to the
<ogc:And> element. |
static int |
OR
Logic operation type that corresponds to the
<ogc:Or> element. |
Constructor and Description |
---|
TLcdOGCBinaryLogicOperator()
Default constructor.
|
TLcdOGCBinaryLogicOperator(int aType)
Constructs an instance for a given logic operation type.
|
TLcdOGCBinaryLogicOperator(int aType,
ILcdOGCCondition... aConditions)
Constructs an instance for a given logic operation type and the given operands.
|
Modifier and Type | Method and Description |
---|---|
void |
addCondition(ILcdOGCCondition aCondition)
Adds a condition.
|
boolean |
equals(Object obj) |
ILcdOGCCondition |
getCondition(int aIndex)
Gets the condition at a given position.
|
int |
getConditionCount()
Gets the number of condition operands.
|
List<ILcdOGCCondition> |
getConditions()
Returns the conditions for this operator
|
int |
getType()
Gets the given logic operation type.
|
int |
hashCode() |
void |
insertConditionAt(ILcdOGCCondition aCondition,
int aIndex)
Inserts a condition at a given position.
|
boolean |
removeCondition(ILcdOGCCondition aCondition)
Removes a condition.
|
void |
setType(int aType)
Sets the given logic operation type.
|
String |
toString() |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final int AND
<ogc:And>
element.public static final int OR
<ogc:Or>
element.public TLcdOGCBinaryLogicOperator()
public TLcdOGCBinaryLogicOperator(int aType)
aType
- the logic operation type. It must be one of the constants of this class.public TLcdOGCBinaryLogicOperator(int aType, ILcdOGCCondition... aConditions)
aType
- the logic operation type. It must be one of the constants of this class.aConditions
- the condition operandspublic int getType()
public void setType(int aType)
aType
- the given logic operation type.public boolean removeCondition(ILcdOGCCondition aCondition)
aCondition
- the condition to be removed.aCondition
was an operand of the logic operator; false otherwise.public List<ILcdOGCCondition> getConditions()
public void insertConditionAt(ILcdOGCCondition aCondition, int aIndex)
aCondition
- the condition of the operand to be inserted.aIndex
- the index of the given position.public void addCondition(ILcdOGCCondition aCondition)
aCondition
- the condition to be added.public int getConditionCount()
public ILcdOGCCondition getCondition(int aIndex)
aIndex
- the index of the given position.public String toString()
toString
in class TLcdDataObject