Class CollectionProperty

    • Constructor Detail

      • CollectionProperty

        public CollectionProperty​(String name,
                                  Collection<?> value)
      • CollectionProperty

        public CollectionProperty()
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Description copied from class: AbstractProperty
        Determines if the two objects are equal by comparing names and values
        Overrides:
        equals in class AbstractProperty
        Returns:
        true if names are equal and values are equal (or both null)
      • remove

        public void remove​(String prop)
      • set

        public void set​(int index,
                        String prop)
      • remove

        public void remove​(int index)
      • setObjectValue

        public void setObjectValue​(Object v)
      • iterator

        public PropertyIterator iterator()
        Get the property iterator to iterate through the sub-values of this JMeterProperty.
        Specified by:
        iterator in class MultiProperty
        Returns:
        an iterator for the sub-values of this property
      • getStringValue

        public String getStringValue()
      • getObjectValue

        public Object getObjectValue()
      • size

        public int size()
      • setCollection

        public void setCollection​(Collection<?> coll)
      • clear

        public void clear()
        Clear away all values in the property.
        Specified by:
        clear in class MultiProperty
      • addItem

        public void addItem​(Object item)
      • recoverRunningVersion

        public void recoverRunningVersion​(TestElement owner)
        Tell the property to revert to the state at the time setRunningVersion(true) was called.
        Parameters:
        owner - the owning element
      • setRunningVersion

        public void setRunningVersion​(boolean running)
        Make the property a running version or turn it off as the running version. A property that is made a running version will preserve the current state in such a way that it is retrievable by a future call to 'recoverRunningVersion()'. Additionally, a property that is a running version will resolve all functions prior to returning it's property value. A non-running version property will return functions as their uncompiled string representation.
        Specified by:
        setRunningVersion in interface JMeterProperty
        Overrides:
        setRunningVersion in class MultiProperty
        Parameters:
        running - flag whether this property is a running version