public enum DescriptionLocator extends java.lang.Enum<DescriptionLocator>
Locators are used to cross-reference metrics, rules, matrices, literature references and glossary items in the documentation of these items. Because of their hyperlink character, locators are constructed like URLs. The string "metric://class/NumOps/" for example references the design metric "NumOps" for elements of type "class".
We call the "metric://" part of the locator its prefix (rather than protocol as there is no communication protocol implied). The "class/NumOps/" part are the parameters of the locator. Each locator has a fixed number of parameters.
| Enum Constant and Description | 
|---|
| GLOSSARYLocator for glossary entries. | 
| MATRIXLocator for matrices. | 
| METRICLocator for metrics. | 
| REFERENCELocator for literature references. | 
| RULELocator for rules. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getParameterCount()Gets the number of parameters this locator expects following the prefix. | 
| java.lang.String | getPrefix()Gets the prefix of this locator. | 
| static DescriptionLocator | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static DescriptionLocator[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final DescriptionLocator METRIC
public static final DescriptionLocator RULE
public static final DescriptionLocator MATRIX
public static final DescriptionLocator REFERENCE
public static final DescriptionLocator GLOSSARY
public static DescriptionLocator[] values()
for (DescriptionLocator c : DescriptionLocator.values()) System.out.println(c);
public static DescriptionLocator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getPrefix()
public int getParameterCount()