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
Parser for
CategorizedElementDefinitionWrapper
parameter.-
Field Summary
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_modelItemTypeExtensionPoint
-
Constructor Summary
ConstructorDescriptionSkinParameterParser
(AbstractThreadSafeComponentExtensionPoint<? extends ElementType> elementTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager, String i18nCatalogueLocation) Creates a categorized element definition parser for the skin. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
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, _parseDefaultValues, _parseMultiple, lookupComponents, parse
Methods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_parseDisableConditions, _parseI18nizableText, _parseName, _parseType, _parseWidget, _parseWidgetParameters, parse
-
Constructor Details
-
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 Details
-
_getNameConfigurationAttribute
Description copied from class:AbstractModelItemParser
Retrieves the name of the configuration attribute that contains the name of the model item- Overrides:
_getNameConfigurationAttribute
in 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:AbstractModelItemParser
Parses a mandatory i18n text configuration, throwing an exception if empty.- Overrides:
_parseI18nizableText
in 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.
-