Class CompositeDefinitionParser
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItemParser
-
- org.ametys.plugins.repository.model.parsing.CompositeDefinitionParser
-
- Direct Known Subclasses:
ContentRestrictedCompositeDefinitionParser
public class CompositeDefinitionParser extends AbstractModelItemParser
This class parses the composite definition
-
-
Field Summary
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItemParser
_modelItemTypeExtensionPoint
-
-
Constructor Summary
Constructors Constructor Description CompositeDefinitionParser(AbstractThreadSafeComponentExtensionPoint<? extends ModelItemType> modelItemTypeExtensionPoint)
Creates a composite definition parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompositeDefinition
_createModelItem(Configuration itemConfig)
Create the model item to populate it.protected String
_parseName(Configuration itemConfig)
Parses the name of the model item.-
Methods inherited from class org.ametys.runtime.model.AbstractModelItemParser
_getNameConfigurationAttribute, _parseDisableConditions, _parseI18nizableText, _parseI18nizableText, _parseType, _parseWidget, _parseWidgetParameters, parse, parse
-
-
-
-
Constructor Detail
-
CompositeDefinitionParser
public CompositeDefinitionParser(AbstractThreadSafeComponentExtensionPoint<? extends ModelItemType> modelItemTypeExtensionPoint)
Creates a composite definition parser.- Parameters:
modelItemTypeExtensionPoint
- the extension point to use to get available model items types
-
-
Method Detail
-
_createModelItem
protected CompositeDefinition _createModelItem(Configuration itemConfig) throws ConfigurationException
Description copied from class:AbstractModelItemParser
Create the model item to populate it.- Specified by:
_createModelItem
in classAbstractModelItemParser
- Parameters:
itemConfig
- the model item configuration to use.- Returns:
- the item instantiated.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
_parseName
protected String _parseName(Configuration itemConfig) throws ConfigurationException
Description copied from class:AbstractModelItemParser
Parses the name of the model item.- Overrides:
_parseName
in classAbstractModelItemParser
- Parameters:
itemConfig
- the model item configuration to use.- Returns:
- the name of the model item.
- Throws:
ConfigurationException
- if the configuration is not valid.
-
-