public final class Properties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Properties.Property |
static class |
Properties.SettableProperty |
Modifier and Type | Method and Description |
---|---|
static String |
getProperty(String key)
Gets the system property or environment variable indicated by the specified key.
|
static Properties.Property |
getProperty(String key,
boolean settable,
String description,
boolean sensitive) |
static Properties.Property |
getProperty(String key,
boolean settable,
String description,
boolean sensitive,
String defaultValue) |
static String |
getProperty(String key,
String defaultValue) |
static Set<Properties.SettableProperty> |
getSettableProperties()
Get the current set of properties that can be modified.
|
static Map<String,String> |
getSnapshot()
Returns the momentary set of properties as a
Map object. |
static Set<String> |
propertyNames()
Returns a set of all the keys in this property list.
|
public static Set<String> propertyNames()
public static Map<String,String> getSnapshot()
Map
object.public static String getProperty(String key)
key
- The name of the system property.public static String getProperty(String key, String defaultValue)
key
- The name of the property.defaultValue
- A default value.public static Properties.Property getProperty(String key, boolean settable, String description, boolean sensitive)
settable
- Allow a property to be modified and get a Properties.SettableProperty
object for
reading future values.public static Properties.Property getProperty(String key, boolean settable, String description, boolean sensitive, String defaultValue)
public static Set<Properties.SettableProperty> getSettableProperties()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.