public class AtomicSelection extends Selection
AtomicSelection is a selection like id=5 or
lastName LIKE 'sch%', i.e. it's not composed of other
selections.
This class is used for the object-based representations of OrgPolicies created by the parser.
| Constructor and Description |
|---|
AtomicSelection(EntityType entityType,
java.lang.String attrName,
CmpOperator cmpOperator,
java.lang.Object value)
Constructs a new
AtomicSelection. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttributeName()
Returns the attribute on which the selection is applied.
|
CmpOperator |
getCmpOperator()
Returns the comparison operator to be used in the selection.
|
EntityType |
getEntityType()
Returns the entity type if specified;
null otherwise. |
java.lang.Object |
getValue()
Returns the value object that is to be compared to the attribute values.
|
public AtomicSelection(EntityType entityType, java.lang.String attrName, CmpOperator cmpOperator, java.lang.Object value)
AtomicSelection.
It will be checked if the value object is of any supported DataType
and whether the CmpOperator can work on it.
entityType - the entity type if specified; may be nullattrName - the attribute on which the selection is appliedcmpOperator - the comparison operator to be usedvalue - the value to compare the attribute values to; may be
nullpublic EntityType getEntityType()
null otherwise.null otherwisepublic java.lang.String getAttributeName()
public CmpOperator getCmpOperator()
public java.lang.Object getValue()