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 Object
implements Option

Option specifying a system property.

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

Constructor Summary
SystemPropertyOption(String key)
          Constructor.
 
Method Summary
 String getKey()
          Getter.
 String getValue()
          Getter.
 String toString()
          
 SystemPropertyOption value(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(String key)
Constructor.

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

value

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

getKey

public String getKey()
Getter.

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

getValue

public String getValue()
Getter.

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

toString

public String toString()

Overrides:
toString in class Object


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