org.jopendocument.util
Class SystemUtils.PropertyList
java.lang.Object
org.jopendocument.util.SystemUtils.PropertyList
- Enclosing class:
- SystemUtils
public static final class SystemUtils.PropertyList
- extends java.lang.Object
Wrap a system property and view it as a list.
- Author:
- Sylvain CUAZ
|
Method Summary |
boolean |
add(java.lang.String value)
Adds a value to the system property list if not already present. |
boolean |
add(java.lang.String value,
boolean append)
|
java.lang.String |
getName()
|
java.lang.String |
getValue()
|
java.util.List<java.lang.String> |
getValues()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemUtils.PropertyList
public SystemUtils.PropertyList(java.lang.String name,
java.lang.String sep)
- Create a new instance.
- Parameters:
name - name of the property, e.g. "java.protocol.handler.pkgs".sep - the separator used, e.g. "|".
getName
public final java.lang.String getName()
getValue
public final java.lang.String getValue()
getValues
public final java.util.List<java.lang.String> getValues()
add
public final boolean add(java.lang.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(java.lang.String value,
boolean append)