public class StandardSelectionProperty extends Object implements SelectionProperty
SelectionProperty
from a
BindingProperty
.Constructor and Description |
---|
StandardSelectionProperty(BindingProperty p) |
Modifier and Type | Method and Description |
---|---|
String |
getFallbackValue()
Returns the fallback value or an empty string if not defined.
|
String |
getName()
Returns the name of the deferred binding property.
|
SortedSet<String> |
getPossibleValues()
Returns all possible values for this deferred binding property.
|
String |
getPropertyProvider(TreeLogger logger,
SortedSet<ConfigurationProperty> configProperties)
Returns a raw function body that provides the runtime value to be used for
a deferred binding property.
|
boolean |
isDerived()
Returns
true if the value of the SelectionProperty is always
derived from other SelectionProperties and, as a consequence, the property
provider never needs to be evaluated. |
String |
toString() |
String |
tryGetValue()
Returns the defined value for the deferred binding property or
null if the value of the property is not constant. |
public StandardSelectionProperty(BindingProperty p)
public String getFallbackValue()
SelectionProperty
getFallbackValue
in interface SelectionProperty
public String getName()
SelectionProperty
getName
in interface SelectionProperty
public SortedSet<String> getPossibleValues()
SelectionProperty
getPossibleValues
in interface SelectionProperty
public String getPropertyProvider(TreeLogger logger, SortedSet<ConfigurationProperty> configProperties) throws UnableToCompleteException
SelectionProperty
getPropertyProvider
in interface SelectionProperty
logger
- logger to use for any warnings/errorsconfigProperties
- set of configuration propertiesUnableToCompleteException
- if execution cannot continue, after
having logged a messagepublic boolean isDerived()
SelectionProperty
true
if the value of the SelectionProperty is always
derived from other SelectionProperties and, as a consequence, the property
provider never needs to be evaluated.isDerived
in interface SelectionProperty
public String tryGetValue()
SelectionProperty
null
if the value of the property is not constant.tryGetValue
in interface SelectionProperty
CompilationResult.getPropertyMap()
Copyright © 2018. All rights reserved.