|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Represents a filter assertion. Sub-interfaces of this are defined for specific aspects of an IDigitalSubject. An assertion is made up of at least a comparator (operator), and often an identifier and assertion value.
TODO Methods here should be get*, not set* to match other interfaces.
| Method Summary | |
|---|---|
void |
includeSubtypes(boolean bIncludeSubtypes)
Calling this the same as calling setID(URI, boolean) and setting the boolean to true. |
void |
setComparator(String comparator)
Set the comparison operator (equal, less, greater, beginsWith, etc.) |
void |
setID(URI id)
|
void |
setID(URI id,
boolean bIncludeSubtypes)
Identifies the component to be compared. For Digital Subject attribute assertions, this would be the type of the attribute (see IAttribute.getAttrID())For Digital Subject CUID and Digital Subject type assertions, the type is not set. For Digital Subject metadata assertions, this would be the type of the metadata (see IMetadata.getID()) |
| Method Detail |
public void setComparator(String comparator)
throws IdASException
Sub-interfaces of this interface define some comparators, other implementations may define more.
TODO (Impl): provide a way in which a consumer can discover allowed/supported comparators. TODO (Arch): some have expressed the belief that this should be represented as an interface rather than a string/URI
comparator - such as IFilterAttributeAssertion.COMP_ATTR_EQ.
The format of this string should be that of a URI to ensure
uniqueness among comparators.
IdASException
public void setID(URI id,
boolean bIncludeSubtypes)
throws IdASException
IAttribute.getAttrID())IMetadata.getID())
id - The type of the componentbIncludeSubtypes - A value of true means that subtypes of the specified type are also to be included.
IdASException
public void setID(URI id)
throws IdASException
IdASException
public void includeSubtypes(boolean bIncludeSubtypes)
throws IdASException
setID(URI, boolean) and setting the boolean to true.
This method is included for IFilterAssertion sub-interfaces which do not
make use of the setID(URI, boolean) method.
bIncludeSubtypes - A value of true means that subtypes of the specified type are also to be included.
IdASException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||