Class PropertyBundle
java.lang.Object
edu.umd.cs.findbugs.PropertyBundle
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Properties(package private) PropertyBundle.Rewriter -
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) (package private) PropertyBundle.RewritervoidloadProperties(Properties properties) voidloadPropertiesFromString(String contents) voidloadPropertiesFromURL(URL url) voidsetProperty(String name, String value) private booleantoString()
-
Field Details
-
properties
-
rewriter
-
-
Constructor Details
-
PropertyBundle
public PropertyBundle() -
PropertyBundle
-
-
Method Details
-
getRewriter
PropertyBundle.Rewriter getRewriter() -
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
-
toBoolean
-
getInt
- Parameters:
name- property namedefaultValue- default value- Returns:
- the int value (or defaultValue if the property does not exist)
-
getOSDependentProperty
-
getProperty
-
setProperty
-
toString
-
getProperty
-
rewriteURLAccordingToProperties
-