org.apache.maven.surefire.booter
Class PropertiesWrapper

java.lang.Object
  extended by org.apache.maven.surefire.booter.PropertiesWrapper
All Implemented Interfaces:
KeyValueSource

public class PropertiesWrapper
extends Object
implements KeyValueSource

Author:
Kristian Rosenvold

Constructor Summary
PropertiesWrapper(Properties properties)
           
 
Method Summary
 void addList(List items, String propertyPrefix)
           
 void copyTo(Map target)
           
 Boolean getBooleanObjectProperty(String propertyName)
           
 boolean getBooleanProperty(String propertyName)
           
 File getFileProperty(String key)
           
 Properties getProperties()
           
 String getProperty(String key)
           
 List getStringList(String propertyPrefix)
           
 TypeEncodedValue getTypeEncodedValue(String key)
          Retrieves as single object that is persisted with type encoding
 void setAsSystemProperties()
           
 void setClasspath(String prefix, Classpath classpath)
           
 void setProperty(String key, Boolean aBoolean)
           
 void setProperty(String key, File file)
           
 void setProperty(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesWrapper

public PropertiesWrapper(Properties properties)
Method Detail

getProperties

public Properties getProperties()

setAsSystemProperties

public void setAsSystemProperties()

getProperty

public String getProperty(String key)

getBooleanProperty

public boolean getBooleanProperty(String propertyName)

getBooleanObjectProperty

public Boolean getBooleanObjectProperty(String propertyName)

getFileProperty

public File getFileProperty(String key)

getStringList

public List getStringList(String propertyPrefix)

getTypeEncodedValue

public TypeEncodedValue getTypeEncodedValue(String key)
Retrieves as single object that is persisted with type encoding

Parameters:
key - The key for the propery
Returns:
The object, of a supported type

setProperty

public void setProperty(String key,
                        File file)

setProperty

public void setProperty(String key,
                        Boolean aBoolean)

setClasspath

public void setClasspath(String prefix,
                         Classpath classpath)

setProperty

public void setProperty(String key,
                        String value)

addList

public void addList(List items,
                    String propertyPrefix)

copyTo

public void copyTo(Map target)
Specified by:
copyTo in interface KeyValueSource


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.