public interface PropertyValueParser
PropertyValueParserFactory
,
PropertyValue
Modifier and Type | Method and Description |
---|---|
int |
getExpansionLevels()
returns the value that was set by setExpansionLevels.
|
PropertyValue |
parse(String pComponentName,
String pPropertyValue,
Configurator pConfigurator)
Calls parse(pComponentName, pPropertyValue, pConfigurator, pContext) with null as a value for pContext
|
PropertyValue |
parse(String pComponentName,
String pRopertyValue,
Configurator pConfigurator,
Context pContext)
The values that are fed to the parser originate in a pConfigurator and belong to a component.
|
void |
setExpansionLevels(int pExpansionLevels)
The ExpansionLevels will be used to limit the amount of levels the value will be expanded when there are more
expansions are expanded themselves.
|
PropertyValue parse(String pComponentName, String pRopertyValue, Configurator pConfigurator, Context pContext) throws BusException
pComponentName
- The component name of the property of which the value is being parsed
pComponentName lenght must be between
PropertyValueParserFactory.MIN_LENGTH_COMPONENT_NAME and
PropertyValueParserFactory.MAX_LENGTH_COMPONENT_NAMEpRopertyValue
- The value of the property that is being parsed
pRopertyValue lenght must be between
PropertyValueParserFactory.MIN_LENGTH_UNPARSED_VALUE and
PropertyValueParserFactory.MAX_LENGTH_UNPARSED_VALUEpConfigurator
- The origin of property of which the value is being parsed (must be a valid pConfigurator)pContext
- the naming context if available. If null the implementation will use the InitialContextBusException
- when there is a configuration errorPropertyValue parse(String pComponentName, String pPropertyValue, Configurator pConfigurator) throws BusException
pComponentName
- The component name of the property of which the value is being parsed (must be a valid name)
pComponentName lenght must be between
PropertyValueParserFactory.MIN_LENGTH_COMPONENT_NAME and
PropertyValueParserFactory.MAX_LENGTH_COMPONENT_NAMEpPropertyValue
- The value of the property that is being parsed
pRopertyValue lenght must be between
PropertyValueParserFactory.MIN_LENGTH_UNPARSED_VALUE and
PropertyValueParserFactory.MAX_LENGTH_UNPARSED_VALUEpConfigurator
- The origin of property of which the value is being parsed (must be a valid pConfigurator)BusException
- when there is a configuration errorvoid setExpansionLevels(int pExpansionLevels) throws BusException
pExpansionLevels
- a value between PropertyValueParserFactory.MIN_EXPANSION_LEVELS and
PropertyValueParserFactory.MAX_EXPANSION_LEVELS. If param pExpansionLevels is not correct a BusException
will raised and the value will remain as it was before.BusException
- when something goes wrongint getExpansionLevels() throws BusException
BusException
- when something goes wrong© 1998- 2018 Stibo DX