public abstract class Tag extends Object
For the standard set of tags
,
to find a provided tag of a language
Modifier and Type | Class and Description |
---|---|
static interface |
Tag.Identifier
Annotation applied to
Tag subclasses to specify the tag identifier. |
Modifier | Constructor and Description |
---|---|
protected |
Tag()
No instances of tags allowed.
|
Modifier and Type | Method and Description |
---|---|
static Class<? extends Tag> |
findProvidedTag(LanguageInfo language,
String tagId)
Finds a provided tag by the language using its
identifier . |
static String |
getIdentifier(Class<? extends Tag> tag)
Returns the alias of a particular tag or
null if no alias was specified for this
tag. |
protected Tag()
public static Class<? extends Tag> findProvidedTag(LanguageInfo language, String tagId)
identifier
. If the
language implementation class is not yet loaded then this method will force the loading.
Therefore it is not recommended to iterate over the entire list of languages and request all
provided tags. It is guaranteed that there is only one provided tag class per tag identifier
and language. For different languages the same tag id might refer to different tag classes.