public interface ConfigurationPropertyModel extends java.io.Serializable, PropertyResolver
Modifier and Type | Field and Description |
---|---|
static ConfigurationPropertyModel |
EMPTY_MODEL |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Property<?> property)
Returns whether this property is contained in the model at all.
|
java.util.Set<Property<?>> |
getAffectedProperties(Property<?> property)
Called after editing the given property, this returns the props whose isRelevant/isEditable should be called.
|
<T> java.util.Optional<java.util.Collection<T>> |
getAllowedValues(Property<T> property)
If the range of allowed properties is restricted, this will return the valid values.
|
java.util.List<Property<?>> |
getApplicableProperties(PropertySet config)
Given the current config, returns the properties that should be displayed.
|
long |
getCurrentModelVersion()
Returns the current model version, incremented when the model is changed.
|
java.util.Set<Property<?>> |
getModelProperties()
Returns properties that are in some way registered with the model.
|
boolean |
isApplicable(PropertySet config,
Property<?> property)
Returns whether a property is relevant given the current configuration.
|
boolean |
isModelProperty(Property<?> property)
Returns true if this is a property that is contained in the Model Properties.
|
void |
mergeTo(MutableConfigurationPropertyModel target)
Takes the traits of this configuration prop model and puts them in the target model.
|
resolve
static final ConfigurationPropertyModel EMPTY_MODEL
long getCurrentModelVersion()
java.util.Set<Property<?>> getModelProperties()
boolean isModelProperty(Property<?> property)
java.util.List<Property<?>> getApplicableProperties(PropertySet config)
boolean isApplicable(PropertySet config, Property<?> property)
<T> java.util.Optional<java.util.Collection<T>> getAllowedValues(Property<T> property)
java.util.Set<Property<?>> getAffectedProperties(Property<?> property)
boolean contains(Property<?> property)
void mergeTo(MutableConfigurationPropertyModel target)