findHyperTarget(...) != null
false
.
To know exactly which phase currently is, use the generator property: output.estimationPhase
Note: Be careful when using this function (especially, within enabling conditions of template components and filtering expressions)! Incorrect use may cause the following side effects:
targetKey
targetKeys
Each hypertarget is identified by a set of keys, which may be objects of any type. The keys are generated automatically for each hypertarget during the estimation phase by the FlexQuery expressions specified for each key in the hypertarget definition (within the properties of a template component).
A hypertarget is matched to the specified keys by matching those keys to the hypertarget's keys.
Any two individual keys are matched simply by comparing them using the Java method: Object.equals()
.
However, matching two sets of keys is not that simple. It is controlled by the next parameter.
keyMatching
The following table shows all possible values of this parameter, the meaning of each value and the sign how it is represented in the Template Designer's Document Hyperlink Dialog (where the hyperlink's keys have the same usage as in this function).
Value | Meaning | Sign |
"sube" |
The specified keys must be a subset of or equal to the hypertarget's keys.
That means that each of the specified keys must have a separate equal pair among the hypertarget's keys. If any two specified keys are equal, they should match to different hypertarget's keys (e.g. if the specified keys include {"one", "one"}, the matching hypertarget must also contain two keys {"one", "one"}).
Note: This value is used by default when neither |
⊆ |
"equiv" |
The specified keys must be equal to the hypertarget's keys.
This is the same as in case of |
≡ |
"supe" |
The specified keys must be a superset of or equal to the hypertarget's keys.
This condition is opposite to |
⊇ |
strict
The following table shows how it is replaced with
keyMatching
parameter:
strict |
keyMatching |
true |
"equiv" |
false |
"sube" |
true
, if the hypertarget matching the specified keys exists;
false
, if such a hypertarget does not exist
documentByHyperTarget(), Array(), GOMOutputInfo.estimationPhase