public class ServiceXSLTEnumerator extends AbstractLogEnabled implements Enumerator<String>, Enumerator, Component, Configurable, PluginAware, Serviceable, Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected Context |
_context
The avalon context
|
protected String |
_defaultValue
The default value of the xsl to use.
|
protected String |
_featureName
The feature declaring the enumerator
|
protected Pattern |
_fileFilter
The file pattern
|
protected String |
_path
The relative path to search
|
protected String |
_pluginName
The plugin declaring the enumerator
|
protected SourceResolver |
_resolver
The excalibur source resolver
|
protected Set<String> |
_values
The plugin xsl to use.
|
| Constructor and Description |
|---|
ServiceXSLTEnumerator() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
_filterNames(Collection<TraversableSource> files)
Filter a list of sources to return thoses matching the _filter
|
private Set<String> |
_getPluginOtherXSL(Configuration configuration) |
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
Map<String,Object> |
getConfiguration()
Get the configuration of this enumerator
|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
Map<String,I18nizableText> |
getTypedEntries()
Provides the enumerated values with their optional label.
|
void |
service(ServiceManager manager) |
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, setupLoggerprotected Pattern _fileFilter
protected String _pluginName
protected String _featureName
protected SourceResolver _resolver
protected String _defaultValue
public ServiceXSLTEnumerator()
public void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic Map<String,Object> getConfiguration()
EnumeratorgetConfiguration in interface Enumeratorprotected List<String> _filterNames(Collection<TraversableSource> files)
files - A non null list of files to filterpublic Map<String,I18nizableText> getTypedEntries() throws Exception
EnumeratorException - if an error occurs.
TODO NEWATTRIBUTEAPI: rename this method when Enumerator will be removedpublic Map<Object,I18nizableText> getEntries() throws Exception
EnumeratorgetEntries in interface EnumeratorException - if an error occurs.public I18nizableText getEntry(String value) throws Exception
EnumeratorgetEntry in interface Enumeratorvalue - the value.null if not found.Exception - if an error occurs.private Set<String> _getPluginOtherXSL(Configuration configuration)