Class CollectionPropertyDescriptor
-
- All Implemented Interfaces:
-
java.io.Serializable
,org.apache.jmeter.testelement.schema.PropertyDescriptor
@API(status = API.Status.EXPERIMENTAL, since = "5.6") public final class CollectionPropertyDescriptor<Schema extends BaseTestElementSchema> implements PropertyDescriptor<Schema, Collection<JMeterProperty>>
Describes a CollectionProperty: name, default value, and provides accessors for properties. Use BaseTestElementSchema.collection or BaseTestElementSchema.collectionDescriptor for building the property descriptors.
- Since:
5.6
-
-
Field Summary
Fields Modifier and Type Field Description private final Collection<JMeterProperty>
defaultValue
private final String
shortName
private final String
name
private final String
defaultValueAsString
private final StringPropertyDescriptor<Schema>
asString
-
Constructor Summary
Constructors Constructor Description CollectionPropertyDescriptor(String shortName, String name)
-
Method Summary
Modifier and Type Method Description Collection<JMeterProperty>
getDefaultValue()
String
getShortName()
String
getName()
final CollectionProperty
get(TestElement target)
Retrieve CollectionProperty property value, or throw NoSuchElementException in case the property is unset. final CollectionProperty
getOrNull(TestElement target)
Retrieve CollectionProperty property value, or return null
in case the property is unset.final CollectionProperty
getOrCreate(TestElement target, Function0<Collection<JMeterProperty>> ifMissing)
Retrieve CollectionProperty property value, or create one and set it the property is unset. final Unit
set(TestElement target, Collection<?> value)
-
-
Method Detail
-
getDefaultValue
Collection<JMeterProperty> getDefaultValue()
-
getShortName
String getShortName()
-
get
final CollectionProperty get(TestElement target)
Retrieve CollectionProperty property value, or throw NoSuchElementException in case the property is unset.
-
getOrNull
final CollectionProperty getOrNull(TestElement target)
Retrieve CollectionProperty property value, or return
null
in case the property is unset.
-
getOrCreate
final CollectionProperty getOrCreate(TestElement target, Function0<Collection<JMeterProperty>> ifMissing)
Retrieve CollectionProperty property value, or create one and set it the property is unset.
-
set
final Unit set(TestElement target, Collection<?> value)
-
-
-
-