Class MetaPropertyCollection

java.lang.Object
com.inductiveautomation.ignition.common.metaproperties.MetaPropertyCollection
All Implemented Interfaces:
Serializable

public class MetaPropertyCollection extends Object implements Serializable
See Also:
  • Constructor Details

    • MetaPropertyCollection

      public MetaPropertyCollection()
    • MetaPropertyCollection

      public MetaPropertyCollection(MetaPropertyCollection copy)
  • Method Details

    • emptyCollection

      public static MetaPropertyCollection emptyCollection()
    • size

      public int size()
    • getProperties

      public Map<String,MetaProperty> getProperties()
      Used for serialization, normally shouldn't be used directly.
    • setProperties

      public void setProperties(Map<String,MetaProperty> propertyMap)
      Used for serialization, normally shouldn't be used directly.
    • contains

      public boolean contains(String name)
    • contains

      public boolean contains(MetaProperty property)
    • unsetProperty

      public void unsetProperty(String name)
    • isSet

      public boolean isSet(WellKnownMetaProperty<?> property)
      Tests to verify that the collection has the property defined, and also that the property's value is not NULL and not the default value.
    • getOrDefault

      public TypedMetaProperty<?> getOrDefault(WellKnownMetaProperty<?> property)
    • get

      public MetaProperty get(MetaProperty property)
    • get

      public MetaProperty get(String name)
    • set

      public void set(MetaProperty property)
      Adds the given property to the collection, or replaces the existing value.
    • set

      public <T> void set(WellKnownMetaProperty<T> property, T value)
      Adds a property to the collection for the given WellKnownProperty, or replaces the existing value.
    • setAll

      public void setAll(MetaPropertyCollection source)
      Merges all the properties from the source to this meta prop collection.
    • setAll

      protected void setAll(MetaPropertyCollection source, boolean cloneProps)