Class BasicConfigurationPropertyModel.InternalProperty<T>
- java.lang.Object
 - 
- com.inductiveautomation.ignition.common.config.BasicConfigurationPropertyModel.InternalProperty<T>
 
 
- 
- All Implemented Interfaces:
 BasicConfigurationPropertyModel.RankedProperty,java.io.Serializable
- Enclosing class:
 - BasicConfigurationPropertyModel
 
protected class BasicConfigurationPropertyModel.InternalProperty<T> extends java.lang.Object implements java.io.Serializable, BasicConfigurationPropertyModel.RankedProperty
- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classBasicConfigurationPropertyModel.InternalProperty.ListValueSourceprotected classBasicConfigurationPropertyModel.InternalProperty.ResourceValueSourceprotected classBasicConfigurationPropertyModel.InternalProperty.ValueSource 
- 
Constructor Summary
Constructors Constructor Description InternalProperty(Property<T> prop) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependantProperty(T value, BasicConfigurationPropertyModel.InternalProperty<?> property)voiddependentOn(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.voidgetDependantProperties(java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> retVal)voidgetEditableProperties(PropertySet config, java.util.Set<BasicConfigurationPropertyModel.RankedProperty> retValues, java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> visited)Property<T>getProperty()intgetRank()booleanisApplicable(PropertySet config)Return true if this property is applicable for the config.protected booleanisChildApplicable(PropertySet config, BasicConfigurationPropertyModel.InternalProperty<?> prop)This is for checking dependencies from the bottom up.booleanisCustomizable()booleanisDependant()booleanisImmutable()voidmarkImmutable()protected voidmergeTo(MutableConfigurationPropertyModel target)voidregisterAllowedValues(java.util.List<T> values)voidremoveDependantProperties(T value)voidsetAllowedValues(java.util.List<T> values)voidsetCustomizable(boolean customizable)voidsetResourceValueSource(java.lang.String id)java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getProperty
public Property<T> getProperty()
- Specified by:
 getPropertyin interfaceBasicConfigurationPropertyModel.RankedProperty
 
- 
getRank
public int getRank()
- Specified by:
 getRankin interfaceBasicConfigurationPropertyModel.RankedProperty
 
- 
isImmutable
public boolean isImmutable()
 
- 
markImmutable
public void markImmutable()
 
- 
setCustomizable
public void setCustomizable(boolean customizable)
 
- 
isCustomizable
public boolean isCustomizable()
 
- 
dependentOn
public void dependentOn(BasicConfigurationPropertyModel.InternalProperty<?> p)
 
- 
isDependant
public boolean isDependant()
 
- 
mergeTo
protected void mergeTo(MutableConfigurationPropertyModel target)
 
- 
getAllowedValues
public 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. 
- 
setAllowedValues
public void setAllowedValues(java.util.List<T> values)
 
- 
registerAllowedValues
public void registerAllowedValues(java.util.List<T> values)
 
- 
setResourceValueSource
public void setResourceValueSource(java.lang.String id)
 
- 
getEditableProperties
public void getEditableProperties(PropertySet config, java.util.Set<BasicConfigurationPropertyModel.RankedProperty> retValues, java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> visited)
 
- 
getDependantProperties
public void getDependantProperties(java.util.Set<BasicConfigurationPropertyModel.InternalProperty<?>> retVal)
 
- 
addDependantProperty
public void addDependantProperty(T value, BasicConfigurationPropertyModel.InternalProperty<?> property)
 
- 
removeDependantProperties
public void removeDependantProperties(T value)
 
- 
isApplicable
public boolean isApplicable(PropertySet config)
Return true if this property is applicable for the config. 
- 
isChildApplicable
protected boolean isChildApplicable(PropertySet config, BasicConfigurationPropertyModel.InternalProperty<?> prop)
This is for checking dependencies from the bottom up. In order for a prop to be valid, its parent must have it as a valid dependency. For that to be true, it must be in the set of props for the current value of the parent prop. 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -