Class AbstractExtendedPropertySet<T extends PropertySet>
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.config.AbstractExtendedPropertySet<T>
 
- 
- All Implemented Interfaces:
- Countable,- Extendable<PropertySet>,- Mergable<PropertySet>,- MutablePropertyValueSource,- PropertySet,- PropertyValueSource,- java.io.Serializable,- java.lang.Iterable<PropertyValue>
 - Direct Known Subclasses:
- BoundExtendedPropertySet,- ExtendedPropertySet
 
 public abstract class AbstractExtendedPropertySet<T extends PropertySet> extends java.lang.Object implements PropertySet - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractExtendedPropertySet()Protected, because only sub classes can set the data.AbstractExtendedPropertySet(T local, T parent)Use the static function if you want to optionally create this only when necessary.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancontains(Property<?> prop)<P> Pget(Property<P> prop)Retrieves the value of the property, or null if this set doesn't contain that property.intgetCount()PropertySetgetExtension()This returns an object that represents the value only for the most "local" level.protected <P> PgetImpl(Property<P> prop, P orElse, boolean orDefault)TgetLocal()protected TgetOrCreateLocal()<P> PgetOrDefault(Property<P> prop)<P> PgetOrElse(Property<P> property, P value)Get the value for a givenProperty, or else fall back to value if it's not present.TgetParent()<P> PgetParentProperty(Property<P> prop)java.util.Collection<Property<?>>getProperties()protected abstract TinstantiateLocal()booleanisExtended(Property<?> prop)Returns whether this property set contains a value for the prop, and the prop was actually inherited.booleanisInherited(Property<?> prop)Indicates whether the property was inherited from a parent type.java.util.Iterator<PropertyValue>iterator()voidmerge(PropertySet other, boolean localDefinitionsOnly)Merges the values from other collection into this one.voidremove(Property<?> prop)<P> voidset(Property<P> prop, P value)voidset(PropertyValue propValue)protected voidsetImpl(Property prop, java.lang.Object val)voidsetLocal(T value)voidsetParent(T value)java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetextend, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourcegetNonNull, getNonNull, getValues
 
- 
 
- 
- 
- 
Field Detail- 
parent@Nullable protected T extends PropertySet parent 
 - 
local@Nullable protected T extends PropertySet local 
 
- 
 - 
Constructor Detail- 
AbstractExtendedPropertySetpublic AbstractExtendedPropertySet(@Nullable T local, @Nullable T parent)Use the static function if you want to optionally create this only when necessary.
 - 
AbstractExtendedPropertySetprotected AbstractExtendedPropertySet() Protected, because only sub classes can set the data.
 
- 
 - 
Method Detail- 
getLocal@Nullable public T getLocal() 
 - 
getParent@Nullable public T getParent() 
 - 
setLocalpublic void setLocal(@Nullable T value)
 - 
setParentpublic void setParent(@Nullable T value)
 - 
getImplprotected <P> P getImpl(Property<P> prop, P orElse, boolean orDefault) 
 - 
getpublic <P> P get(Property<P> prop) Description copied from interface:PropertyValueSourceRetrieves the value of the property, or null if this set doesn't contain that property.- Specified by:
- getin interface- PropertyValueSource
 
 - 
getOrDefaultpublic <P> P getOrDefault(Property<P> prop) - Specified by:
- getOrDefaultin interface- PropertyValueSource
- Returns:
- The value for prop or Property.getDefaultValue()if not present. Can return null if the value is null.
 
 - 
getOrElsepublic <P> P getOrElse(Property<P> property, P value) Description copied from interface:PropertyValueSourceGet the value for a givenProperty, or else fall back to value if it's not present.- Specified by:
- getOrElsein interface- PropertyValueSource
- Parameters:
- property- The- Propertyfor which a value is to be retrieved.
- value- The value to default to if property isn't present.
- Returns:
- The value of property if present, value if not. Can return null if the value is null.
 
 - 
getParentPropertypublic <P> P getParentProperty(Property<P> prop) 
 - 
instantiateLocalprotected abstract T instantiateLocal() 
 - 
getOrCreateLocalprotected T getOrCreateLocal() 
 - 
setpublic <P> void set(Property<P> prop, P value) - Specified by:
- setin interface- MutablePropertyValueSource
 
 - 
setpublic void set(PropertyValue propValue) - Specified by:
- setin interface- MutablePropertyValueSource
 
 - 
setImplprotected void setImpl(Property prop, java.lang.Object val) 
 - 
removepublic void remove(Property<?> prop) - Specified by:
- removein interface- MutablePropertyValueSource
 
 - 
containspublic boolean contains(Property<?> prop) - Specified by:
- containsin interface- PropertyValueSource
- Returns:
- True if the source contains a value for prop.
 
 - 
getPropertiespublic java.util.Collection<Property<?>> getProperties() - Specified by:
- getPropertiesin interface- PropertyValueSource
 
 - 
iterator@Nonnull public java.util.Iterator<PropertyValue> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<T extends PropertySet>
 
 - 
isExtendedpublic boolean isExtended(Property<?> prop) Description copied from interface:PropertySetReturns whether this property set contains a value for the prop, and the prop was actually inherited. In other words, this is true if the property is inherited, and an override value is present.- Specified by:
- isExtendedin interface- PropertySet
 
 - 
isInheritedpublic boolean isInherited(Property<?> prop) Description copied from interface:PropertySetIndicates whether the property was inherited from a parent type.- Specified by:
- isInheritedin interface- PropertySet
 
 - 
getExtensionpublic PropertySet getExtension() Description copied from interface:ExtendableThis returns an object that represents the value only for the most "local" level. That is, this is the difference between the inherited base and the current extension. Complex objects should ensure that trait is true for all aspects of the returned value.- Specified by:
- getExtensionin interface- Extendable<T extends PropertySet>
- Specified by:
- getExtensionin interface- PropertySet
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
mergepublic void merge(PropertySet other, boolean localDefinitionsOnly) Description copied from interface:MergableMerges the values from other collection into this one. Replaces any currently existing value with those from the other set.- Specified by:
- mergein interface- Mergable<T extends PropertySet>
- Specified by:
- mergein interface- MutablePropertyValueSource
 
 
- 
 
-