Interface BoundPropertySet
- All Superinterfaces:
Countable, Extendable<PropertySet>, Iterable<PropertyValue>, Mergable<PropertySet>, MutablePropertyValueSource, PropertySet, PropertyValueSource, Serializable
- All Known Subinterfaces:
TagConfiguration, TagConfigurationModel, VersionedPropertySet
- All Known Implementing Classes:
BasicBoundPropertySet, BasicTagConfiguration, BasicTagConfigurationModel, BasicVersionedPropertySet, BoundExtendedPropertySet, BoundPropertySetConfig, BoundPropertySetDiff, DelegatePropertySet, IntersectedBoundPropertySet, IntersectedTagEditModel, StorageTagConfiguration
-
Field Summary
Fields inherited from interface PropertySet
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondefault PropertySetextend(PropertySet parent) If called on a child, gets the extension with the given parent.default @Nullable ObjectgetBoundOrDefault(Property<?> prop) If the property is bound, return the bound value.Collection<Property<?>> @Nullable BoundValuegetBoundValue(Property<?> prop) default List<PropertyValue> Returns the opaque PropertyValue objects.booleandefault PropertySetdefault PropertySetCalled 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 Iterable
forEach, iterator, spliteratorMethods inherited from interface MutablePropertyValueSource
merge, remove, set, setMethods inherited from interface PropertySet
getExtension, isExtended, isInheritedMethods inherited from interface PropertyValueSource
contains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties
-
Method Details
-
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
-
setBoundValue
-
getBoundValue
-
getBoundOrDefault
-
getBoundProperties
Collection<Property<?>> getBoundProperties() -
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
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
- Specified by:
newDefaultInstancein interfacePropertySet
-