org.eclipse.higgins.idas.api
Interface IFilterMetadataAssertion

All Superinterfaces:
IFilterAssertion

public interface IFilterMetadataAssertion
extends IFilterAssertion

Represents a filter assertion about metadata.
This assertion is made up of a comparator (operator), metadataID and assertion value.

// * The particular type and form of the IMetadata used as an assertion is dictated by the comparator and the metadata 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_META_EQ
          Compares true when a tested Entity has a metadata of the specified type which contains a value equal to the specified assertion value.
static String COMP_META_PRESENT
          Compares true when the specified metadata type is present in a tested container of metadata.
static String COMP_PROP_GE
          Compares true when a tested Entity has a metadata of the specified type which contains a value greater or equal to the specified assertion value.
static String COMP_PROP_LE
          Compares true when a tested Entity has a metadata of the specified type which contains a value less or equal to the specified assertion value.
static String COMP_PROP_SUBSTR
          Compares true when a tested Entity has a metadata of the specified type which contains a value containing the substring specified by the assertion value.
 
Method Summary
 void setAssertionValue(IMetadata assertion)
          Specifies the assertion data to be tested against values of a metadata container's metadata.
 
Methods inherited from interface org.eclipse.higgins.idas.api.IFilterAssertion
includeSubtypes, setComparator, setID, setID
 

Field Detail

COMP_META_PRESENT

public static final String COMP_META_PRESENT
Compares true when the specified metadata type is present in a tested container of metadata.

An assertion value is not specified.

Value: "urn:org.eclipse.higgins.idas.api.comparator.metadata.present"

See Also:
Constant Field Values

COMP_META_EQ

public static final String COMP_META_EQ
Compares true when a tested Entity has a metadata of the specified type which contains a value equal to the specified assertion value.

Value: "urn:org.eclipse.higgins.idas.api.comparator.metadata.equality"

See Also:
Constant Field Values

COMP_PROP_GE

public static final String COMP_PROP_GE
Compares true when a tested Entity has a metadata of the specified type which contains a value greater or equal to the specified assertion value.

Value: "urn:org.eclipse.higgins.idas.api.comparator.metadata.greaterOrEqual"

See Also:
Constant Field Values

COMP_PROP_LE

public static final String COMP_PROP_LE
Compares true when a tested Entity has a metadata of the specified type which contains a value less or equal to the specified assertion value.

Value: "urn:org.eclipse.higgins.idas.api.comparator.metadata.lessOrEqual"

See Also:
Constant Field Values

COMP_PROP_SUBSTR

public static final String COMP_PROP_SUBSTR
Compares true when a tested Entity has a metadata of the specified type which contains a value containing the substring specified by the assertion value.

TODO: need to handle initial, any, final substrings. Value: "urn:org.eclipse.higgins.idas.api.comparator.metadata.substring"

See Also:
Constant Field Values
Method Detail

setAssertionValue

public void setAssertionValue(IMetadata assertion)
                       throws IdASException
Specifies the assertion data to be tested against values of a metadata container's metadata.

Throws:
IdASException