public class PropertyBundle
extends java.lang.Object
Constructor and Description |
---|
PropertyBundle() |
PropertyBundle(java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
PropertyBundle |
copy() |
boolean |
getBoolean(java.lang.String name)
Get boolean property, returning false if a security manager prevents us
from accessing system properties
|
boolean |
getBoolean(java.lang.String name,
boolean defaultValue) |
int |
getInt(java.lang.String name,
int defaultValue) |
java.lang.String |
getOSDependentProperty(java.lang.String name) |
java.util.Properties |
getProperties() |
java.lang.String |
getProperty(java.lang.String name) |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue) |
void |
loadProperties(java.util.Properties properties) |
void |
loadPropertiesFromString(java.lang.String contents) |
void |
loadPropertiesFromURL(java.net.URL url) |
java.lang.String |
rewriteURLAccordingToProperties(java.lang.String u) |
void |
setProperty(java.lang.String name,
java.lang.String value) |
java.lang.String |
toString() |
public PropertyBundle()
public PropertyBundle(java.util.Properties properties)
public PropertyBundle copy()
public java.util.Properties getProperties()
public void loadPropertiesFromString(java.lang.String contents)
public void loadPropertiesFromURL(java.net.URL url)
public void loadProperties(java.util.Properties properties)
public boolean getBoolean(java.lang.String name)
public boolean getBoolean(java.lang.String name, boolean defaultValue)
public int getInt(java.lang.String name, int defaultValue)
name
- property namedefaultValue
- default valuepublic java.lang.String getOSDependentProperty(java.lang.String name)
name
- property namepublic java.lang.String getProperty(java.lang.String name)
name
- property namepublic void setProperty(java.lang.String name, java.lang.String value)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- property namedefaultValue
- default valuepublic java.lang.String rewriteURLAccordingToProperties(java.lang.String u)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.