Package org.ametys.web.site
Class SiteParameterWrapperParser
- java.lang.Object
 - 
- org.ametys.runtime.model.CategorizedElementDefinitionParser
 - 
- org.ametys.web.site.SiteParameterWrapperParser
 
 
 
- 
public class SiteParameterWrapperParser extends CategorizedElementDefinitionParser
Parser for Site parameter wrapper. 
- 
- 
Constructor Summary
Constructors Constructor Description SiteParameterWrapperParser(SiteParameterParser parser)Creates a site parameter wrapper parser. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SiteParameterWrapper_createElementDefinitionWrapper()Create the element definition wrapper to populate it.SiteParameterWrapperparse(ServiceManager serviceManager, String pluginName, Configuration parameterConfig)Parses a site parameter wrapper from a XML configuration.SiteParameterWrapperparse(ServiceManager serviceManager, String pluginName, Configuration parameterConfig, Model model, ModelItemGroup parent)Parses an element definition from a XML configuration.- 
Methods inherited from class org.ametys.runtime.model.CategorizedElementDefinitionParser
_parseI18nizableText 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SiteParameterWrapperParser
public SiteParameterWrapperParser(SiteParameterParser parser)
Creates a site parameter wrapper parser.- Parameters:
 parser- the site parameter parser
 
 - 
 
- 
Method Detail
- 
parse
public SiteParameterWrapper parse(ServiceManager serviceManager, String pluginName, Configuration parameterConfig) throws ConfigurationException
Parses a site parameter wrapper from a XML configuration.- Parameters:
 serviceManager- the service managerpluginName- the plugin name declaring this parameter.parameterConfig- the XML configuration of the parameter.- Returns:
 - the parsed parameter.
 - Throws:
 ConfigurationException- if the configuration is not valid.
 
- 
parse
public SiteParameterWrapper parse(ServiceManager serviceManager, String pluginName, Configuration parameterConfig, Model model, ModelItemGroup parent) throws ConfigurationException
Description copied from class:CategorizedElementDefinitionParserParses an element definition from a XML configuration.- Overrides:
 parsein classCategorizedElementDefinitionParser- Parameters:
 serviceManager- the service managerpluginName- the plugin name declaring this item.parameterConfig- the XML configuration of the model item.model- the model which defines the model itemparent- the parent of the model item to create. Can be null if the model item to parse has no parent- Returns:
 - the parsed model item.
 - Throws:
 ConfigurationException- if the configuration is not valid.
 
- 
_createElementDefinitionWrapper
protected SiteParameterWrapper _createElementDefinitionWrapper()
Description copied from class:CategorizedElementDefinitionParserCreate the element definition wrapper to populate it.- Overrides:
 _createElementDefinitionWrapperin classCategorizedElementDefinitionParser- Returns:
 - the wrapper instantiated.
 
 
 - 
 
 -