protected class BasicConfigurationPropertyModel.InternalProperty<T> extends java.lang.Object implements java.io.Serializable, BasicConfigurationPropertyModel.RankedProperty
Constructor and Description |
---|
InternalProperty(Property<T> prop) |
Modifier and Type | Method and Description |
---|---|
void |
addDependantProperty(T value,
BasicConfigurationPropertyModel.InternalProperty<?> property) |
void |
dependentOn(BasicConfigurationPropertyModel.InternalProperty<?> p) |
java.util.Optional<java.util.Collection<T>> |
getAllowedValues()
Returns the specified allowed values first, then the implicit values if keyed models are registered,
otherwise empty optional.
|
void |
getDependantProperties(java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> retVal) |
void |
getEditableProperties(PropertySet config,
java.util.Set<BasicConfigurationPropertyModel.RankedProperty> retValues,
java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> visited) |
Property<T> |
getProperty() |
int |
getRank() |
boolean |
isApplicable(PropertySet config)
Return true if this property is applicable for the config.
|
protected boolean |
isChildApplicable(PropertySet config,
BasicConfigurationPropertyModel.InternalProperty<?> prop)
This is for checking dependencies from the bottom up.
|
boolean |
isDependant() |
boolean |
isImmutable() |
void |
markImmutable() |
protected void |
mergeTo(MutableConfigurationPropertyModel target) |
void |
registerAllowedValues(java.util.List<T> values) |
void |
removeDependantProperties(T value) |
void |
setAllowedValues(java.util.List<T> values) |
java.lang.String |
toString() |
public Property<T> getProperty()
getProperty
in interface BasicConfigurationPropertyModel.RankedProperty
public int getRank()
getRank
in interface BasicConfigurationPropertyModel.RankedProperty
public boolean isImmutable()
public void markImmutable()
public void dependentOn(BasicConfigurationPropertyModel.InternalProperty<?> p)
public boolean isDependant()
protected void mergeTo(MutableConfigurationPropertyModel target)
public java.util.Optional<java.util.Collection<T>> getAllowedValues()
public void setAllowedValues(java.util.List<T> values)
public void registerAllowedValues(java.util.List<T> values)
public void getEditableProperties(PropertySet config, java.util.Set<BasicConfigurationPropertyModel.RankedProperty> retValues, java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> visited)
public void getDependantProperties(java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> retVal)
public void addDependantProperty(T value, BasicConfigurationPropertyModel.InternalProperty<?> property)
public void removeDependantProperties(T value)
public boolean isApplicable(PropertySet config)
protected boolean isChildApplicable(PropertySet config, BasicConfigurationPropertyModel.InternalProperty<?> prop)
public java.lang.String toString()
toString
in class java.lang.Object