Selector

What is a Selector?

A selector in Dragon1 is a set of rules to identify or find a subset of entities/objects in a model.

Selectors Examples

Some examples of selectors are:

  • entityclass=* - This selects/finds all the entities/objects a model with any value for the class attribute
  • entityclass=application - This selects/finds all the applications in a model
  • type=* - This selects/finds all the entities/objects a model with any value for the type attribute
  • type=business - This selects/finds all the entities in a model that have type value business
  • attribute=win32 - This selects/finds all the entities in a model that have value win32 for any attribute
  • attribute=* - This selects/finds all the entities/objects a model with any value for any attribute
  • entityclass=application&type=business&platform=win32 - This selects all business applications that have the value win32 for platform

Using Selectors

Selectors are used to find principles, patterns, rules, standard and solutions in models and data.

A view, principles, patters, rule, standard and solution can be provided with a selector attribute.