public interface IndirectLink extends QueryLink<IndirectLink>
allowed steps
are a set of indirect link steps definitions
, each
consists of "from", "to" and "link" part. Together, these form the rules by which a path may be traversed.
If exists a path from the source node to the target node, using only the allowed steps (or a subset of them), the
indirect link will "exist", either for condition purposes, result purposes or both.showEntirePath()
was not called, the indirect link will exist in the result as a
TopologyRelation
between the source
TopologyCI
and the target TopologyCI. The node name of the
TopologyRelation will be the name
of the IndirectLink.showEntirePath()
was called, the actual path identified between the source TopologyCI and the target
TopologyCI will exist in the result (steps of CI, Relation, CI).
Any properties to query
set will affect on both the inner nodes and inner links of the
indirect link.
If invisible, calling "showEntirePath" is useless since the link can only be used as a condition on its adjacent
query nodes.
An indirect link may be constraint to match at least
and
at most
number of steps.Modifier and Type | Method and Description |
---|---|
Map<String,? extends PropertiesToQuery> |
getPropertiesToQueryPerType()
Returns the properties to query for each type.
|
String |
linksName()
Returns the name for the step links.
|
int |
maxNumberOfStepsMatched()
Returns the maxNumberOfStepsMatched.
|
int |
minNumberOfStepsMatched()
Returns the minNumberOfStepsMatched.
|
String |
nodesName()
Returns the name for the step nodes.
|
PropertiesToQuery |
propertiesToQuery(String subType)
Returns an object that represents the properties to query for elements of the specified subtype.
|
boolean |
shouldShowEntirePath()
Returns if the entire path of the indirect link should be shown.
|
boolean |
shouldStopAtFirstMatch()
Returns the "shouldStopAtFirstTarget" flag.
|
IndirectLink |
showEntirePath()
Calling this method will cause the nodes and links from the steps to appear in the resulting topology.
|
Collection<? extends IndirectLinkStep> |
steps()
Returns the steps collection for this indirect link.
|
IndirectLink |
stopAtFirstMatch()
If called, the indirect link will stop at the first time it reaches a CI matching its target.
|
IndirectLink |
withLinksName(String name)
Defines the name for the links identified by the steps in this indirect link.
|
IndirectLink |
withMaxNumberOfStepsMatched(int maxNumberOfStepsMatched)
Sets the maximum number of steps that should be searched for while creating links using this definition in
the topology.
|
IndirectLink |
withMinNumberOfStepsMatched(int minNumberOfStepsMatched)
Sets the minimum number of steps that should co-exist before a link will be created in the result topology.
|
IndirectLink |
withNodesName(String name)
Defines the name for the nodes identified by the steps in this indirect link.
|
EmptyIndirectLinkStep |
withStep()
Adds a step to this indirect link.
|
asDirectLink, asIndirectLink, asOnPropertiesLink, atLeast, atMost, exactly, getFromNode, getToNode, name, queryLinkType, restrictToSelfLinks, selfLinkFilter, setSelfLinkFilter, sourceMaxCardinality, sourceMinCardinality, sourceNode, targetMaxCardinality, targetMinCardinality, targetNode, withName, withoutSelfLinks, withSourceCardinality, withTargetCardinality
invisible, isInvisible
EmptyIndirectLinkStep withStep()
Collection<? extends IndirectLinkStep> steps()
IndirectLink withMinNumberOfStepsMatched(int minNumberOfStepsMatched)
minNumberOfStepsMatched()
int minNumberOfStepsMatched()
withMinNumberOfStepsMatched(int).
IndirectLink withMaxNumberOfStepsMatched(int maxNumberOfStepsMatched)
maxNumberOfStepsMatched()
int maxNumberOfStepsMatched()
withMaxNumberOfStepsMatched(int).
IndirectLink stopAtFirstMatch()
A1->B1->C1->A2->B2->C2.And the steps defined are:
A->B B->C C->AAnd the source node is A and the target node is C.
shouldStopAtFirstMatch()
boolean shouldStopAtFirstMatch()
stopAtFirstMatch()
IndirectLink showEntirePath()
shouldShowEntirePath()
boolean shouldShowEntirePath()
IndirectLink withNodesName(String name)
nodesName()
,
showEntirePath()
String nodesName()
withNodesName(String)
IndirectLink withLinksName(String name)
nodesName()
,
showEntirePath()
String linksName()
withLinksName(String)
PropertiesToQuery propertiesToQuery(String subType)
Map<String,? extends PropertiesToQuery> getPropertiesToQueryPerType()
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.