org.jopendocument.util
Class SystemUtils.PropertyList

java.lang.Object
  extended by org.jopendocument.util.SystemUtils.PropertyList
Enclosing class:
SystemUtils

public static final class SystemUtils.PropertyList
extends Object

Wrap a system property and view it as a list.

Author:
Sylvain CUAZ

Constructor Summary
SystemUtils.PropertyList(String name, String sep)
          Create a new instance.
 
Method Summary
 boolean add(String value)
          Adds a value to the system property list if not already present.
 boolean add(String value, boolean append)
           
 String getName()
           
 String getValue()
           
 List<String> getValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemUtils.PropertyList

public SystemUtils.PropertyList(String name,
                                String sep)
Create a new instance.

Parameters:
name - name of the property, e.g. "java.protocol.handler.pkgs".
sep - the separator used, e.g. "|".
Method Detail

getName

public final String getName()

getValue

public final String getValue()

getValues

public final List<String> getValues()

add

public final boolean add(String value)
Adds a value to the system property list if not already present.

Parameters:
value - the value to add, e.g. "sun.net.www.protocol".
Returns:
true if the property was modified.

add

public final boolean add(String value,
                         boolean append)


Copyright © 2010 jOpenDocument All Rights Reserved.