public class CategorizedElementDefinitionParser extends ElementDefinitionParser
ElementDefinition
_modelItemTypeExtensionPoint
Constructor and Description |
---|
CategorizedElementDefinitionParser(AbstractThreadSafeComponentExtensionPoint<? extends ModelItemType> modelItemTypeExtensionPoint,
ThreadSafeComponentManager<Enumerator> enumeratorManager,
ThreadSafeComponentManager<Validator> validatorManager)
Creates a categorized element definition parser.
|
Modifier and Type | Method and Description |
---|---|
protected CategorizedElementDefinitionProxy |
_createModelItem(Configuration definitionConfig)
Create the model item to populate it.
|
private boolean |
_isGroupSwitch(Configuration definitionConfig) |
protected Object |
_parseDefaultValue(Configuration definitionConfig,
ElementDefinition definition)
Parses the default value.
|
CategorizedElementDefinitionProxy |
parse(ServiceManager serviceManager,
String pluginName,
Configuration definitionConfig,
Model model,
ModelItemGroup parent)
Parses an element definition from a XML configuration.
|
_parseAndSetEnumerator, _parseAndSetValidator, _parseDisableConditions, _parseMultiple, _parseWidget, _parseWidgetParameters, lookupComponents
_getNameConfigurationAttribute, _parseI18nizableText, _parseName, _parseType
public CategorizedElementDefinitionParser(AbstractThreadSafeComponentExtensionPoint<? extends ModelItemType> modelItemTypeExtensionPoint, ThreadSafeComponentManager<Enumerator> enumeratorManager, ThreadSafeComponentManager<Validator> validatorManager)
modelItemTypeExtensionPoint
- the extension point to use to get available element typesenumeratorManager
- the enumerator component manager.validatorManager
- the validator component manager.public CategorizedElementDefinitionProxy parse(ServiceManager serviceManager, String pluginName, Configuration definitionConfig, Model model, ModelItemGroup parent) throws ConfigurationException
AbstractModelItemParser
parse
in class ElementDefinitionParser
serviceManager
- the service managerpluginName
- the plugin name declaring this item.definitionConfig
- 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 parentConfigurationException
- if the configuration is not valid.protected CategorizedElementDefinitionProxy _createModelItem(Configuration definitionConfig) throws ConfigurationException
AbstractModelItemParser
_createModelItem
in class ElementDefinitionParser
definitionConfig
- the model item configuration to use.ConfigurationException
- if the configuration is not valid.protected Object _parseDefaultValue(Configuration definitionConfig, ElementDefinition definition) throws ConfigurationException
ElementDefinitionParser
_parseDefaultValue
in class ElementDefinitionParser
definitionConfig
- the element definition configuration.definition
- the element definition.null
if none defined.ConfigurationException
- if the configuration is not valid.private boolean _isGroupSwitch(Configuration definitionConfig)