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

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

public interface TypeConditionable<E>

Indicates that the extending element may have a type condition.

Since:
UCMDB 9.0

Method Summary
 boolean isTypeStrict()
          Checks whether the element is defined to match only its type and not derived types.
 E noDerivedTypes()
          Allows only the given type to be matched by this element.
 E ofConfigurationItemType()
          Specifies that this query element matches elements of it world types.
 E ofITWorldType()
          Deprecated. use ofConfigurationItemType()
 E ofType(java.lang.String type)
          Sets the type of elements to be matched by this element.
 E strictlyOfType(java.lang.String type)
          Sets the exact type of this element and returns the element itself.
 java.lang.String type()
          The type of elements to be matched by this element.
 

Method Detail

ofType

E ofType(java.lang.String type)
Sets the type of elements to be matched by this element. By default, elements of subtypes are also matched. Call noDerivedTypes() to prevent matching subtypes.

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

ofITWorldType

E ofITWorldType()
Deprecated. use ofConfigurationItemType()


ofConfigurationItemType

E ofConfigurationItemType()
Specifies that this query element matches elements of it world types.

If the parent element is a QueryNode or a node-type element, this is equivalent to: withType("configuration_item").
Else, if the parent element is a QueryLink or a link-type element, this is equivalent to: withType("managed_relationship").

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

strictlyOfType

E strictlyOfType(java.lang.String type)
Sets the exact type of this element and returns the element itself.

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

noDerivedTypes

E noDerivedTypes()
Allows only the given type to be matched by this element.

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

type

java.lang.String type()
The type of elements to be matched by this element.

See Also:
TypeConditionable

isTypeStrict

boolean isTypeStrict()
Checks whether the element is defined to match only its type and not derived types. By default isTypeStrict returns false.

See Also:
TypeConditionable


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