USMeta.Components |
At runtime, gets metadata information about components from the model developed in USoft Definer. This information takes the form of component methods, with parameters, as well as general info about the component such as the name and architecture among others. Returns an XML document of the form demonstrated in Example 1 below. Syntax
All parameters are optional. Parameter values that you pass are mapped to parameters by alias name. The '.*DOT NET.*' value in the following example is for architecture-pattern because of the "Architecture" alias:
This results in all components of the "DOT NET", and the "DOT NET INTERNAL" architectures. (For backward compatibility only, it is possible to supply parameter values by position. Using this syntax, a list of non-aliased values maps to the parameter list in the order stated, with empty values at the end of the list if you supply less than 2 values, and '' (the empty string) as a way of explicitly declaring an empty value.) Name-pattern is a regular expression that matches zero, one or more component names in the model. The result data is limited to components matching the pattern. If name-pattern is omitted, then result data is not limited in this way. Architecture-pattern is a regular expression that matches zero, one or more component architectures in the model. The result data is limited to components with architectures matching the pattern. If architecture-pattern is omitted, then result data is not limited in this way. The following are valid component architectures in USoft:
Example 1 This example returns component information about any components in the model that have the name 'REGEXP', and are of the 'J2EE' architecture :
The return value of this statement could be:
See also |
![]() |