Runtime components : Core components : ElementFactory : Reference : Tag naming rules
  
Tag naming rules
Reserved tag name
There are three reserved tag names, arguments, entry and ref.
General tag name
Use class name together with package name to be the general element tag name. For example, mypackage.className.
Use short cut of class name
Class name together with package name might be a long string. You can define short cut for a class name.
To define the short cut for a class name, you must define a Map containing the mapping between the short cut and the real class name. The Map must be defined in your TagProvider, together with your element definition. You must use classTable as the ID:
<map id="classTable">
  <entry key="simpleElement" value="mypackage.SimpleElement" />
</map>
With this factory, you can define your element as follows:
<simpleElement id="aSimpleElement" />
You can use the full class name too. The <simpleElement id="aSimpleElement" /> equals <mypackage.SimpleElement id="aSimpleElement" />.
The following table lists the predefined short cuts for class names:
 
Short cut
Class name
map
java.util.HashMap
list
java.util.ArrayList
set
java.util.HashSet
props
java.util.Properties
Although ElementFactory provides the capability to short cut the class name, it is not suggested to be widely used to avoid confusion.
There are some criterions to use class name short cut:
1 The class name is used again and again. For example, class name for FormatElements.
2 The short name follows a naming convention. For example, each short name for FormatElements starts with character ‘f’.
See also
Reference