General syntax |
<type [value="regexp" regexpid="my_id" invert="false"] />
|
Description |
Test the type name of the component. This test is an
alias instruction for the test Element and specialAttribute Element. |
Attributes |
Name |
Use |
Annotation |
value |
optional |
It can be either a string or any Regular Expression reference. If
the optional attribute value is omitted, then the test will execute an existence
check. If the value attribute is defined, the test is successful if the value matches
the pattern. |
regexpid |
optional |
Defines the unique id within of the namespace to reference the
test using regular expressions. Allowed characters: [p{Alnum}\_\-] = [a-z A-Z 0-9 _
-] |
invert |
optional |
The Boolean value True inverts the behavior
of the instruction. If the attribute is not configured, the default value
False is used and the behavior of the instruction is not
inverted. If the value is specified as True and the criteria do
not match, the child instructions are executed. |
Examples |
<!-- tests if a special attribute type.name exists / is defined -->
<type />
<!--type tests if type name equals AC -->
<group value=" AC" />
<!-- tests if type name starts with AC -->
<type value="AC(.*)" />
|