public class

SystemPropertyOption

extends Object
implements ValueOption<T>
java.lang.Object
   ↳ org.ops4j.pax.exam.options.SystemPropertyOption

Class Overview

Option specifying a system property.

Summary

Public Constructors
SystemPropertyOption(String key)
Constructor.
Public Methods
String getKey()
Getter.
String getValue()
Getter.
String toString()
SystemPropertyOption value(String value)
Sets the system property value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.ops4j.pax.exam.options.ValueOption

Public Constructors

public SystemPropertyOption (String key)

Constructor.

Parameters
key system property key (cannot be null or empty)
Throws
IllegalArgumentException - If key is null or empty

Public Methods

public String getKey ()

Getter.

Returns
  • system property key (cannot be null or empty)

public String getValue ()

Getter.

Returns
  • system property value (cannot be null, can be empty)

public String toString ()

public SystemPropertyOption value (String value)

Sets the system property value.

Parameters
value system property value (cannot be null, can be empty)
Returns
  • itself, for fluent api usage
Throws
IllegalArgumentException - If value is null