E
- the query element type, used for method chaining. e.g. QueryNode, DirectLink, ReachableSetStepFromPart,
IndirectLinkStepLinkPart, etc...public interface EmptyComplexTypeConditionable<E> extends ComplexTypeConditionable<E>
QueryNode queryNode = ... queryNode.ofType("x"); EmptyComplexTypeConditionableHowever, for explicit condition creation, it's usually easier (and more readable) to use the chained methods approach:condition1 = queryNode.withComplexTypeCondition(); condition1.withType("sub_x"); condition1.restrictToQualifiers("qualifier1", "qualifier2"); condition1.withQualifierMatchingStrategy(QualifierMatchingStrategy.NEGATE_QUALIFIER_CONDITION); EmptyComplexTypeConditionable condition2 = queryNode.withComplexTypeCondition(); condition2.withoutType("sub_sub_x"); condition2.restrictToQualifiers("qualifier3", "qualifier4");
queryNode.ofType("x"). withComplexTypeCondition().withType("sub_x").restrictToQualifiers("qualifier1", "qualifier2"). withQualifierMatchingStrategy(QualifierMatchingStrategy.NEGATE_QUALIFIER_CONDITION). toQueryElement(). withComplexTypeCondition().withoutType("sub_sub_x").restrictToQualifiers("qualifier3", "qualifier4");
Modifier and Type | Method and Description |
---|---|
ComplexTypeConditionable<E> |
strictlyWithoutType(String type)
Sets the exact type of the element to be ignored and returns the element itself.
|
ComplexTypeConditionable<E> |
strictlyWithType(String type)
Sets the exact type of this element and returns the element itself.
|
ComplexTypeConditionable<E> |
withoutType(String type)
Sets types of elements to be ignored by this element.
|
ComplexTypeConditionable<E> |
withType(String type)
Sets additional types of elements to be matched by this element.
|
isTypeStrict, toQueryElement, type, typeMode
qualifierMatchingStrategy, qualifiersRestrictiedTo, restrictToQualifiers, restrictToQualifiers, withQualifierMatchingStrategy
ComplexTypeConditionable<E> withType(String type)
type
- class type for the current complex type conditionEmptyComplexTypeConditionable
ComplexTypeConditionable<E> withoutType(String type)
TypeConditionable.type()
,
in order to ignore it in the result and use only complex types to define the relevant types for the
current elementtype
- class type for the current complex type condition. The provided type will be ignore in the
results for this element.EmptyComplexTypeConditionable
ComplexTypeConditionable<E> strictlyWithType(String type)
type
- specify the exact class type for the conditionEmptyComplexTypeConditionable
ComplexTypeConditionable<E> strictlyWithoutType(String type)
type
- specify the exact class type to be ignored for the conditionEmptyComplexTypeConditionable
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.