Package org.uberfire.commons.config
Class ConfigProperties.ConfigProperty
- java.lang.Object
-
- org.uberfire.commons.config.ConfigProperties.ConfigProperty
-
- Enclosing class:
- ConfigProperties
public static class ConfigProperties.ConfigProperty extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBooleanValue()Returns the boolean value of this property, converting from string using the same rules asBoolean.valueOf(String).intgetIntValue()Returns the integer value of this property, converting from string using the same rules asInteger.parseInt(String).StringgetName()Returns the name (map key) of this property.StringgetValue()Returns the value of this property, which may or may not have been the default value.booleanisDefault()Returns false if this value appeared among the user-supplied values; false if it came from the application-provided default.StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Returns the name (map key) of this property.
-
getValue
public String getValue()
Returns the value of this property, which may or may not have been the default value.- Returns:
- the property value. Will be null if both the configured value was missing and the default was given as null.
- See Also:
isDefault()
-
isDefault
public boolean isDefault()
Returns false if this value appeared among the user-supplied values; false if it came from the application-provided default.- Returns:
- whether this value is a default
-
getBooleanValue
public boolean getBooleanValue()
Returns the boolean value of this property, converting from string using the same rules asBoolean.valueOf(String).
-
getIntValue
public int getIntValue()
Returns the integer value of this property, converting from string using the same rules asInteger.parseInt(String).- Throws:
NumberFormatException- if the value cannot be parsed as an integer.
-
-