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 TypeMethodDescriptionvoidconfigure(Configuration configuration) getId()Get the idgetLabel()Get the labelvoidsetPluginInfo(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, waitMethods 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:UniqueCodeGeneratorGet the id- Specified by:
getIdin interfaceUniqueCodeGenerator- Returns:
- the id.
-
getLabel
Description copied from interface:UniqueCodeGeneratorGet the label- Specified by:
getLabelin interfaceUniqueCodeGenerator- Returns:
- The label
-
setPluginInfo
Description copied from interface:PluginAwareSets 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:
setPluginInfoin 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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-