Package edu.umd.cs.findbugs
Class PropertyBundle
java.lang.Object
edu.umd.cs.findbugs.PropertyBundle
- Author:
- pugh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
getBoolean
(String name) Get boolean property, returning false if a security manager prevents us from accessing system propertiesboolean
getBoolean
(String name, boolean defaultValue) int
getOSDependentProperty
(String name) getProperty
(String name) getProperty
(String name, String defaultValue) void
loadProperties
(Properties properties) void
loadPropertiesFromString
(String contents) void
loadPropertiesFromURL
(URL url) void
setProperty
(String name, String value) toString()
-
Constructor Details
-
PropertyBundle
public PropertyBundle() -
PropertyBundle
-
-
Method Details
-
copy
-
getProperties
-
loadPropertiesFromString
-
loadPropertiesFromURL
-
loadProperties
-
getBoolean
Get boolean property, returning false if a security manager prevents us from accessing system properties- Returns:
- true if the property exists and is set to true
-
getBoolean
-
getInt
- Parameters:
name
- property namedefaultValue
- default value- Returns:
- the int value (or defaultValue if the property does not exist)
-
getOSDependentProperty
- Parameters:
name
- property name- Returns:
- string value (or null if the property does not exist)
-
getProperty
- Parameters:
name
- property name- Returns:
- string value (or null if the property does not exist)
-
setProperty
-
toString
-
getProperty
- Parameters:
name
- property namedefaultValue
- default value- Returns:
- string value (or defaultValue if the property does not exist)
-
rewriteURLAccordingToProperties
-