public class StaticPropertyOracle extends Object implements PropertyOracle, Serializable
PropertyOracle
that contains property values,
rather than computing them.Constructor and Description |
---|
StaticPropertyOracle(BindingProperty[] orderedProps,
String[] orderedPropValues,
ConfigurationProperty[] configProps)
Create a property oracle that will return the supplied values.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationProperty |
getConfigurationProperty(String propertyName)
Attempts to get a named configuration property.
|
BindingProperty[] |
getOrderedProps() |
String[] |
getOrderedPropValues() |
SelectionProperty |
getSelectionProperty(TreeLogger logger,
String propertyName)
Attempts to get a named deferred binding property.
|
String |
toString()
Dumps the binding property key/value pairs; For debugging use only.
|
public StaticPropertyOracle(BindingProperty[] orderedProps, String[] orderedPropValues, ConfigurationProperty[] configProps)
orderedProps
- array of binding propertiesorderedPropValues
- values of the above binding propertiesconfigProps
- array of config propertiespublic ConfigurationProperty getConfigurationProperty(String propertyName) throws BadPropertyValueException
PropertyOracle
BadPropertyValueException
if the property is undefined. The
result of invoking this method with the same propertyName
must
be stable.getConfigurationProperty
in interface PropertyOracle
BadPropertyValueException
- if the property is unknown or not a
configuration propertypublic BindingProperty[] getOrderedProps()
public String[] getOrderedPropValues()
public SelectionProperty getSelectionProperty(TreeLogger logger, String propertyName) throws BadPropertyValueException
PropertyOracle
BadPropertyValueException
if the property is either undefined
or has a value that is unsupported. The result of invoking this method with
the same propertyName
must be stable.getSelectionProperty
in interface PropertyOracle
BadPropertyValueException
- if the property is unknown or not a
selection propertyCopyright © 2018. All rights reserved.