The DOFQuery class is used to specify filters for calling
QueryOperationListener
when object interfaces are added to or
removed from the system.
A DOFQuery consists of a list of filters and a restriction list of DOFInterfaceIDs.
A Filter consists of a list of DOFObjectIDs and a list of DOFInterfaceIDs; both may be empty.
To match a filter the providing object must be providing on ANY of the specified DOFObjectIDs (if the list of
DOFObjectIDs is empty it will match any OID) and must be providing ALL of the specified DOFInterfaceIDs (if the list
of DOFInterfaceIDs is empty it will match any IID).
To match a query the providing object must match ANY filter and and be in the restriction list (if the restriction
list is empty it will match any IID).
Must be created with a
Builder
. This class is immutable once built.
Any changes will need to be made using the Builder.Builder(DOFQuery) constructor.
Inheritance Hierarchy
org.opendof.core.oalDOFQuery
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
[SerializableAttribute] public sealed class DOFQuery : DOFImmutable
The DOFQuery type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | DOFQuery | Initializes a new instance of the DOFQuery class |
Methods
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | isFilterMatch | Does the object and interfaces match a query. |
![]() | isPreviousFilterMatch | Does the objectID match a query and has it already been matched on this query.
|
![]() | restrict |
Gets the intersection of the set of interfaces that are currently provided and the set of interfaces in the
restriction list.
|
![]() | ToString | (Overrides ObjectToString.) |
See Also
Reference
DOFSystem.beginQuery(DOFQuery, QueryOperationListener)