Package org.ametys.odf.content.code
Class DisplayCodeProviderEnumerator
java.lang.Object
org.ametys.odf.content.code.DisplayCodeProviderEnumerator
- All Implemented Interfaces:
Enumerator<String>,Serviceable
public class DisplayCodeProviderEnumerator
extends Object
implements Enumerator<String>, Serviceable
An enumeration that list the providers for program items' display code
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides the enumerated values with their optional label.Retrieves a single label from a value.voidservice(ServiceManager manager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.Enumerator
getConfiguration
-
Constructor Details
-
DisplayCodeProviderEnumerator
public DisplayCodeProviderEnumerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getEntries
Description copied from interface:EnumeratorProvides the enumerated values with their optional label.- Specified by:
getEntriesin interfaceEnumerator<String>- Returns:
- the enumerated values and their label.
- Throws:
MalformedURLExceptionIOException
-
getEntry
Description copied from interface:EnumeratorRetrieves a single label from a value.- Specified by:
getEntryin interfaceEnumerator<String>- Parameters:
value- the value.- Returns:
- the label or
nullif not found. - Throws:
Exception- if an error occurs.
-