com.hp.ucmdb.api.topology
Interface IdConditionable<E,T extends Element>

Type Parameters:
E - the extending element type, used for method chaining.
T - the type of elements (CIs or Relations) that can be used for the withIdsOf(T...) methods.
All Known Subinterfaces:
DirectLink, QueryNode

public interface IdConditionable<E,T extends Element>

Indicates that the extending element may have an IDs condition.

Since:
UCMDB 9.0

Method Summary
 java.util.Collection<UcmdbId> ids()
          Returns the ids previously set using any of the "withIds..." methods, or an empty collection if none of these methods was used.
 E withIds(java.lang.Iterable<UcmdbId> ids)
          Restricts the set of matching elements to those having the IDs returned by the given iterable.
 E withIds(UcmdbId... ids)
          Restricts the set of matching elements to those having the specified IDs.
 E withIdsFromStrings(java.lang.Iterable<java.lang.String> idsAsStrings)
          Restricts the set of matching elements to those having the IDs returned by the given iterable.
 E withIdsFromStrings(java.lang.String... idsAsStrings)
          Restricts the set of matching elements to those having the specified IDs.
 E withIdsOf(java.lang.Iterable<? extends T> elements)
          Restricts the set of matching elements to those whose IDs are specified by the elements in the returned by the iterable.
 E withIdsOf(T... elements)
          Restricts the set of matching elements to those whose IDs are specified by the elements in the set.
 

Method Detail

withIds

E withIds(UcmdbId... ids)
Restricts the set of matching elements to those having the specified IDs.

Returns:
this object. The returned object can be used for method chaining.
See Also:
IdConditionable

withIds

E withIds(java.lang.Iterable<UcmdbId> ids)
Restricts the set of matching elements to those having the IDs returned by the given iterable.

Returns:
this object. The returned object can be used for method chaining.
See Also:
IdConditionable

withIdsFromStrings

E withIdsFromStrings(java.lang.String... idsAsStrings)
Restricts the set of matching elements to those having the specified IDs. The ID strings can be obtained with UcmdbId.getAsString()

Returns:
this object. The returned object can be used for method chaining.
See Also:
IdConditionable

withIdsFromStrings

E withIdsFromStrings(java.lang.Iterable<java.lang.String> idsAsStrings)
Restricts the set of matching elements to those having the IDs returned by the given iterable. The ID strings can be obtained with UcmdbId.getAsString()

Returns:
this object. The returned object can be used for method chaining.
See Also:
IdConditionable

withIdsOf

E withIdsOf(T... elements)
Restricts the set of matching elements to those whose IDs are specified by the elements in the set.

Returns:
this object (to allow method chaining)
See Also:
IdConditionable

withIdsOf

E withIdsOf(java.lang.Iterable<? extends T> elements)
Restricts the set of matching elements to those whose IDs are specified by the elements in the returned by the iterable.

Returns:
this object (to allow method chaining)
See Also:
IdConditionable

ids

java.util.Collection<UcmdbId> ids()
Returns the ids previously set using any of the "withIds..." methods, or an empty collection if none of these methods was used.

See Also:
IdConditionable


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