Interface BoundPropertySet
-
- All Superinterfaces:
Countable,Extendable<PropertySet>,java.lang.Iterable<PropertyValue>,Mergable<PropertySet>,MutablePropertyValueSource,PropertySet,PropertyValueSource,java.io.Serializable
- All Known Subinterfaces:
TagConfiguration,TagConfigurationModel,VersionedPropertySet
- All Known Implementing Classes:
BasicBoundPropertySet,BasicTagConfiguration,BasicTagConfigurationModel,BasicVersionedPropertySet,BoundExtendedPropertySet,BoundPropertySetConfig,BoundPropertySetDiff,DelegatePropertySet,IntersectedBoundPropertySet,IntersectedTagEditModel,StorageTagConfiguration
public interface BoundPropertySet extends PropertySet
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PropertySetextend(PropertySet parent)If called on a child, gets the extension with the given parent.default java.lang.ObjectgetBoundOrDefault(Property<?> prop)If the property is bound, return the bound value.java.util.Collection<Property<?>>getBoundProperties()BoundValuegetBoundValue(Property<?> prop)default java.util.List<PropertyValue>getValues()Returns the opaque PropertyValue objects.booleanisBound(Property<?> prop)default PropertySetnewDefaultInstance()default PropertySetnewExtension()Called on a base object, gets a new extension with a default config object for the child.voidsetBoundValue(Property<?> prop, BoundValue value)-
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge, remove, set, set
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
getExtension, isExtended, isInherited
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
contains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties
-
-
-
-
Method Detail
-
getValues
default java.util.List<PropertyValue> getValues()
Description copied from interface:PropertyValueSourceReturns the opaque PropertyValue objects. This can be useful when you want to avoid the strict type checking of the value, and it's important to note that if the property is bound, the value will be a BoundValue. Be very careful about overriding, and make sure to maintain the methodology of using getProperties to iterate and get (or getOrDefault), to get the value, because those are all handled differently by BoundPropertySets, ExtendedPropertySets, etc.- Specified by:
getValuesin interfacePropertyValueSource
-
isBound
boolean isBound(Property<?> prop)
-
setBoundValue
void setBoundValue(Property<?> prop, BoundValue value)
-
getBoundValue
BoundValue getBoundValue(Property<?> prop)
-
getBoundOrDefault
@Nullable default java.lang.Object getBoundOrDefault(Property<?> prop)
If the property is bound, return the bound value. Otherwise return the value or default.
-
getBoundProperties
java.util.Collection<Property<?>> getBoundProperties()
-
newExtension
default PropertySet newExtension()
Description copied from interface:ExtendableCalled on a base object, gets a new extension with a default config object for the child.- Specified by:
newExtensionin interfaceExtendable<PropertySet>- Specified by:
newExtensionin interfacePropertySet
-
extend
default PropertySet extend(PropertySet parent)
Description copied from interface:ExtendableIf called on a child, gets the extension with the given parent.- Specified by:
extendin interfaceExtendable<PropertySet>- Specified by:
extendin interfacePropertySet
-
newDefaultInstance
default PropertySet newDefaultInstance()
- Specified by:
newDefaultInstancein interfacePropertySet
-
-