Package org.ametys.web.skin
Class SkinParameterParser
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItemParser
-
- org.ametys.runtime.model.ElementDefinitionParser
-
- org.ametys.web.skin.SkinParameterParser
-
public class SkinParameterParser extends ElementDefinitionParser
Parser forCategorizedElementDefinitionWrapperparameter.
-
-
Field Summary
Fields Modifier and Type Field Description private String_i18nCatalogueLocation-
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_modelItemTypeExtensionPoint
-
-
Constructor Summary
Constructors Constructor Description SkinParameterParser(AbstractThreadSafeComponentExtensionPoint<? extends ElementType> elementTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager, String i18nCatalogueLocation)Creates a categorized element definition parser for the skin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String_getNameConfigurationAttribute()Retrieves the name of the configuration attribute that contains the name of the model itemprotected I18nizableText_parseI18nizableText(Configuration config, String catalog, String name)Parses a mandatory i18n text configuration, throwing an exception if empty.-
Methods inherited from class org.ametys.runtime.model.ElementDefinitionParser
_createModelItem, _parseAndSetEnumerator, _parseAndSetValidator, _parseDefaultValue, _parseDisableConditions, _parseMultiple, _parseWidget, _parseWidgetParameters, lookupComponents, parse
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_parseI18nizableText, _parseName, _parseType, parse
-
-
-
-
Field Detail
-
_i18nCatalogueLocation
private String _i18nCatalogueLocation
-
-
Constructor Detail
-
SkinParameterParser
public SkinParameterParser(AbstractThreadSafeComponentExtensionPoint<? extends ElementType> elementTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager, String i18nCatalogueLocation)
Creates a categorized element definition parser for the skin.- Parameters:
elementTypeExtensionPoint- the extension point to use to get available element typesenumeratorManager- the enumerator component manager.validatorManager- the validator component manager.i18nCatalogueLocation- the path of the i18n folder of the skin
-
-
Method Detail
-
_getNameConfigurationAttribute
protected String _getNameConfigurationAttribute()
Description copied from class:AbstractModelItemParserRetrieves the name of the configuration attribute that contains the name of the model item- Overrides:
_getNameConfigurationAttributein classAbstractModelItemParser- Returns:
- the name of the configuration attribute that contains the name of the model item
-
_parseI18nizableText
protected I18nizableText _parseI18nizableText(Configuration config, String catalog, String name) throws ConfigurationException
Description copied from class:AbstractModelItemParserParses a mandatory i18n text configuration, throwing an exception if empty.- Overrides:
_parseI18nizableTextin classAbstractModelItemParser- Parameters:
config- the configuration to use.catalog- the catalogname- the child name.- Returns:
- the i18n text.
- Throws:
ConfigurationException- if the configuration is not valid.
-
-