org.ops4j.pax.exam.options
Class SystemPropertyOption

java.lang.Object
  extended by org.ops4j.pax.exam.options.SystemPropertyOption
All Implemented Interfaces:
Option

public class SystemPropertyOption
extends java.lang.Object
implements Option

Option specifying a system property.

Since:
0.3.0, December 10, 2008
Author:
Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
SystemPropertyOption(java.lang.String key)
          Constructor.
 
Method Summary
 java.lang.String getKey()
          Getter.
 java.lang.String getValue()
          Getter.
 java.lang.String toString()
          
 SystemPropertyOption value(java.lang.String value)
          Sets the system property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemPropertyOption

public SystemPropertyOption(java.lang.String key)
Constructor.

Parameters:
key - system property key (cannot be null or empty)
Throws:
java.lang.IllegalArgumentException - - If key is null or empty
Method Detail

value

public SystemPropertyOption value(java.lang.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:
java.lang.IllegalArgumentException - - If value is null

getKey

public java.lang.String getKey()
Getter.

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

getValue

public java.lang.String getValue()
Getter.

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.