|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFilterAttributeAssertion
Represents a filter assertion about a Entity's Attributes
(IHasAttributes.getAttribute(URI) and IHasAttributes.getAttributes()).
This assertion is made up of a comparator (operator), attribute type and assertion value.
The particular type and form of the IAttributeValue used as an assertion is dictated by the comparator and the attribute type. In other words, a particular attribute type will specify the comparators valid for that type, as well as the format of assertion value for each valid comparator. TODO (Doc): Refer to example specifications for this
| Field Summary | |
|---|---|
static String |
COMP_ATTR_EQ
Compares true when a tested Entity has a attribute of the specified type which contains at least one value equal to the specified assertion value. |
static String |
COMP_ATTR_GE
Compares true when a tested Entity has a attribute of the specified type which contains at least one value greater or equal to the specified assertion value. |
static String |
COMP_ATTR_INFERRED_REL_EQ
This Comparator is used for assertions of type EntityRelationship (and sub-types). |
static String |
COMP_ATTR_LE
Compares true when a tested Entity has a attribute of the specified type which contains at least one value less or equal to the specified assertion value. |
static String |
COMP_ATTR_PRESENT
Compares true when the specified attribute type is present in a tested Entity. |
static String |
COMP_ATTR_SUBSTR
Compares true when a tested Entity has a attribute of the specified type which contains at least one value containing the substring specified by the assertion value. |
| Method Summary | |
|---|---|
void |
setAssertionValue(IValue assertion)
Specifies the assertion data to be tested against values of a Entity's attribute. |
void |
setAttributeFilter(IFilter attributeFilter)
Adds an (meta) attribute filter to this attribute assertion. |
| Methods inherited from interface org.eclipse.higgins.idas.api.IFilterAssertion |
|---|
includeSubtypes, setComparator, setID, setID |
| Field Detail |
|---|
static final String COMP_ATTR_PRESENT
An assertion value is not specified.
Value: "urn:org.eclipse.higgins.idas.api.comparator.attribute.present"
static final String COMP_ATTR_EQ
Value: "urn:org.eclipse.higgins.idas.api.comparator.attribute.equality"
static final String COMP_ATTR_GE
Value: "urn:org.eclipse.higgins.idas.api.comparator.attribute.greaterOrEqual"
static final String COMP_ATTR_LE
Value: "urn:org.eclipse.higgins.idas.api.comparator.attribute.lessOrEqual"
static final String COMP_ATTR_SUBSTR
TODO: need to handle initial, any, final substrings. Value: "urn:org.eclipse.higgins.idas.api.comparator.attribute.substring"
static final String COMP_ATTR_INFERRED_REL_EQ
For example, if the assertion specified a type of "urn:parentOf" and reference of
{"someContext", "urn:Mary"} it could result in a match because either:
An entity has a relationship attribute of type "urn:parentOf" and reference of
{"someContext", "urn:Mary"), or
An entity is referenced by the entity "urn:Mary" in the context "someContext"
where the referencing relationship attribute is of type "urn:childOf"
(assuming the model backing the context provides the proper inferences between
parentOf and childOf)
Value: "urn:org.eclipse.higgins.idas.api.comparator.attribute.inferred.relationship.equality"
| Method Detail |
|---|
void setAssertionValue(IValue assertion)
throws IdASException
IdASException
void setAttributeFilter(IFilter attributeFilter)
throws IdASException
attributeFilter - A filter, specifying meta-attribute data
which must match for this assertion to match.
This allows one to differentiate between two attributes
of the same type where the meta-attribute data differs.
IdASException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||