com.hp.ucmdb.api.topology
Interface QualifierConditionable<E>

Type Parameters:
E - the extending element type, used for method chaining.
All Known Subinterfaces:
DirectLink, ModelCreateFilterElement, ModelRemoveFilterElement, ModelUpdateFilterElement, QueryNode, QueryNodeRestrictions

public interface QualifierConditionable<E>

Indicates that the extending element may have a qualifier condition.

This conditionable behavior can be either "positive match" (allow only elements with any of the qualifiers) or "negative match" (disallow elements with any of the qualifiers). This is controlled by the withQualifierMatchingStrategy(QualifierMatchingStrategy) flag.

By default, the strategy is set to "positive matching".

Since:
UCMDB 9.0

Method Summary
 QualifierMatchingStrategy qualifierMatchingStrategy()
          The matching strategy flag for positive or negative matching.
 java.util.Set<java.lang.String> qualifiersRestrictiedTo()
          The set of qualifiers this element is restricted to.
 E restrictToQualifiers(java.util.Collection<java.lang.String> qualifiers)
          Restrict the element to match (or negative-match) the given qualifiers.
 E restrictToQualifiers(java.lang.String... qualifiers)
          Restrict the element to match (or negative-match) the given qualifiers.
 E withQualifierMatchingStrategy(QualifierMatchingStrategy matchingStrategyFlag)
          Sets the matching strategy for positive or negative matching.
 

Method Detail

restrictToQualifiers

E restrictToQualifiers(java.lang.String... qualifiers)
Restrict the element to match (or negative-match) the given qualifiers. Replaces any existing condition of this type.

Parameters:
qualifiers - the qualifiers to restrict to.
Returns:
this object. The returned object can be used for method chaining.

restrictToQualifiers

E restrictToQualifiers(java.util.Collection<java.lang.String> qualifiers)
Restrict the element to match (or negative-match) the given qualifiers. Replaces any existing condition of this type.

Parameters:
qualifiers - the qualifiers to restrict to.
Returns:
this object. The returned object can be used for method chaining.

qualifiersRestrictiedTo

java.util.Set<java.lang.String> qualifiersRestrictiedTo()
The set of qualifiers this element is restricted to.

Returns:
the set of qualifiers this element is restricted to (positive or negative matches).

withQualifierMatchingStrategy

E withQualifierMatchingStrategy(QualifierMatchingStrategy matchingStrategyFlag)
Sets the matching strategy for positive or negative matching.

Parameters:
matchingStrategyFlag - the flag.
Returns:
this object. The returned object can be used for method chaining.

qualifierMatchingStrategy

QualifierMatchingStrategy qualifierMatchingStrategy()
The matching strategy flag for positive or negative matching.

Returns:
the matching strategy flag for positive or negative matching.


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.