Package org.ametys.odf.content.code
Class AbstractUniqueCodeGenerator
java.lang.Object
org.ametys.odf.content.code.AbstractUniqueCodeGenerator
- All Implemented Interfaces:
UniqueCodeGenerator
,PluginAware
,Configurable
- Direct Known Subclasses:
PrefixedIncrementalCodeGenerator
,RandomCodeGenerator
public abstract class AbstractUniqueCodeGenerator
extends Object
implements UniqueCodeGenerator, Configurable, PluginAware
Abstract class for a static
UniqueCodeGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) getId()
Get the idgetLabel()
Get the labelvoid
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.odf.content.code.UniqueCodeGenerator
generateUniqueCode
-
Field Details
-
_pluginName
The plugin name
-
-
Constructor Details
-
AbstractUniqueCodeGenerator
public AbstractUniqueCodeGenerator()
-
-
Method Details
-
getId
Description copied from interface:UniqueCodeGenerator
Get the id- Specified by:
getId
in interfaceUniqueCodeGenerator
- Returns:
- the id.
-
getLabel
Description copied from interface:UniqueCodeGenerator
Get the label- Specified by:
getLabel
in interfaceUniqueCodeGenerator
- Returns:
- The label
-
setPluginInfo
Description copied from interface:PluginAware
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.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-