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()booleangetBoolean(String name) Get boolean property, returning false if a security manager prevents us from accessing system propertiesbooleangetBoolean(String name, boolean defaultValue) intgetOSDependentProperty(String name) getProperty(String name) getProperty(String name, String defaultValue) voidloadProperties(Properties properties) voidloadPropertiesFromString(String contents) voidloadPropertiesFromURL(URL url) voidsetProperty(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
-