public class PropertyValueParserImpl extends Object implements PropertyValueParser
Modifier and Type | Method and Description |
---|---|
int |
getExpansionLevels()
returns the value that was set by setExpansionLevels.
|
PropertyValue |
parse(String pComponentName,
String pRopertyValue,
Configurator pConfigurator)
Calls parse(pComponentName, pPropertyValue, pConfigurator, pContext) with null as a value for pContext
|
PropertyValue |
parse(String pComponentName,
String pPropertyValue,
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.
|
public PropertyValue parse(String pComponentName, String pRopertyValue, Configurator pConfigurator) throws BusException
PropertyValueParser
parse
in interface PropertyValueParser
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_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)BusException
- when there is a configuration errormethod parse(String pComponentName, String pRopertyValue, Configurator pConfigurator)
public PropertyValue parse(String pComponentName, String pPropertyValue, Configurator pConfigurator, Context pContext) throws BusException
PropertyValueParser
parse
in interface PropertyValueParser
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_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)pContext
- the naming context if available. If null the implementation will use the InitialContextBusException
- when there is a configuration errormethod parse(String pComponentName, String pPropertyValue, Configurator pConfigurator, final Context pContext)
public void setExpansionLevels(int pExpansionLevels) throws BusException
PropertyValueParser
setExpansionLevels
in interface PropertyValueParser
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 wrongmethod setExpansionLevels(int pExpansionLevels)
public int getExpansionLevels() throws BusException
PropertyValueParser
getExpansionLevels
in interface PropertyValueParser
BusException
- when something goes wrongmethod getExpansionLevels()
© 1998- 2018 Stibo DX