public class DublinCoreMetadataProvider extends AbstractLogEnabled implements Component, Contextualizable, ThreadSafe, Initializable
Modifier and Type | Field and Description |
---|---|
private Context |
_cocoonContext |
private Map<String,Map<String,I18nizableText>> |
_entries |
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
DublinCoreMetadataProvider() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,I18nizableText> |
_parseEnumerator(Configuration configuration)
Parses the enumerator.
|
protected void |
_parseFile(String metadataName)
Parses the enumerator.
|
protected I18nizableText |
_parseI18nizableText(Configuration config,
String name)
Parses an i18n text.
|
void |
contextualize(Context context) |
Map<String,I18nizableText> |
getEntries(String metadataName)
Provides the enumerated values
|
I18nizableText |
getEntry(String metadataName,
String value)
Retrieves a single label from a value.
|
Set<String> |
getEnumeratedMetadataNames()
Get the enumerated metadata names
|
void |
initialize() |
boolean |
isEnumerated(String metadataName)
Determines if the DublinCore metadata is enumerated
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private Context _cocoonContext
public DublinCoreMetadataProvider()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public Set<String> getEnumeratedMetadataNames()
public boolean isEnumerated(String metadataName)
metadataName
- the metadata namepublic Map<String,I18nizableText> getEntries(String metadataName)
metadataName
- the metadata namepublic I18nizableText getEntry(String metadataName, String value)
metadataName
- the metadata nalevalue
- the value.null
if not found.protected void _parseFile(String metadataName) throws ConfigurationException
metadataName
- the metadata nameConfigurationException
- if the configuration is not valid.protected Map<String,I18nizableText> _parseEnumerator(Configuration configuration) throws ConfigurationException
configuration
- the configuration to useConfigurationException
- if the configuration is not valid.protected I18nizableText _parseI18nizableText(Configuration config, String name) throws ConfigurationException
config
- the configuration to use.name
- the child name.ConfigurationException
- if the configuration is not valid.