QueryClassificationsAllOf

The QueryClassificationsAllOf element in the view query definition file defines a list of classifications to be used as part of the query. If an object is classified by every classification in the list, or by a child classification in the classification hierarchy, then the object is returned in the query results. This implies a logical "AND" of the classifications, or their child classifications.

The QueryClassificationsAllOf element is optional.

The QueryClassificationsAllOf element differs from the QueryExactClassificationsAllOf element in that child classifications are taken into account.

If you specify a QueryClassificationsAllOf element, then the containing element must not contain any of the following elements:
  • QueryClassificationsAnyOf
  • QueryExactClassificationsAllOf
  • QueryExactClassificationsAnyOf

The QueryClassificationsAllOf element can contain one or more ClassificationURI elements, which define the classification list.

Example

In the following example, an object satisfies the query condition if it is classified as both "Operational" (or a child classification of "Operational"), and "Retired" (or a child classification of "Retired").
<QueryClassificationsAllOf>
  <ClassificationURI>
    http://www.ibm.com/xmlns/prod/serviceregistry/6/0/governance/DefaultLifecycle#Operational
  </ClassificationURI>
  <ClassificationURI>
    http://www.ibm.com/xmlns/prod/serviceregistry/6/0/governance/DefaultLifecycle#Retired
  </ClassificationURI>
</QueryClassificationsAllOf>