T
- the tag classpublic abstract class AbstractTagProvider<T extends Tag> extends AbstractLogEnabled implements TagProvider<T>, Configurable, PluginAware
Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_description
The description
|
protected String |
_featureName
The feature name
|
protected String |
_id
The id
|
protected I18nizableText |
_label
The label
|
protected String |
_pluginName
The plugin name
|
Constructor and Description |
---|
AbstractTagProvider() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
protected I18nizableText |
configureDescription(Configuration configuration,
String defaultCatalogue)
Configure description from the passed configuration
|
protected I18nizableText |
configureLabel(Configuration configuration,
String defaultCatalogue)
Configure label from the passed configuration
|
I18nizableText |
getDescription()
Returns the provider's description.
|
String |
getId()
Returns the provider's id.
|
I18nizableText |
getLabel()
Returns the provider's label.
|
String |
getPluginName()
Get the plugin name
|
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTag, getTags, getTags, hasTag
protected String _pluginName
protected String _featureName
protected I18nizableText _label
protected I18nizableText _description
public AbstractTagProvider()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public String getId()
TagProvider
getId
in interface TagProvider<T extends Tag>
public I18nizableText getLabel()
TagProvider
getLabel
in interface TagProvider<T extends Tag>
public I18nizableText getDescription()
TagProvider
getDescription
in interface TagProvider<T extends Tag>
protected I18nizableText configureLabel(Configuration configuration, String defaultCatalogue) throws ConfigurationException
configuration
- The configurationdefaultCatalogue
- The default catalogueConfigurationException
- If an error occurredprotected I18nizableText configureDescription(Configuration configuration, String defaultCatalogue) throws ConfigurationException
configuration
- The configurationdefaultCatalogue
- The default catalogueConfigurationException
- If an error occurredpublic void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic String getPluginName()