|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.util.property.Property org.eigenbase.util.property.BooleanProperty
public class BooleanProperty
Definition and accessor for a boolean property.
Field Summary |
---|
Fields inherited from class org.eigenbase.util.property.Property |
---|
properties |
Constructor Summary | |
---|---|
BooleanProperty(Properties properties,
String path)
Creates a Boolean property which has no default value. |
|
BooleanProperty(Properties properties,
String path,
boolean defaultValue)
Creates a Boolean property. |
Method Summary | |
---|---|
boolean |
get()
Retrieves the value of this boolean property. |
boolean |
get(boolean defaultValue)
Retrieves the value of this boolean property. |
boolean |
set(boolean value)
Sets the value of this boolean property. |
Methods inherited from class org.eigenbase.util.property.Property |
---|
addTrigger, booleanValue, getDefaultValue, getInternal, getPath, getString, isSet, onChange, removeTrigger, setString, stringValue, toBoolean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BooleanProperty(Properties properties, String path, boolean defaultValue)
properties
- Properties object which holds values for this property.path
- Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".defaultValue
- Default value, null if there is no default.public BooleanProperty(Properties properties, String path)
properties
- Properties object which holds values for this property.path
- Name by which this property is serialized to a properties
file, for example "com.acme.trace.Verbosity".Method Detail |
---|
public boolean get()
Returns true
if the property exists, and its value is
1
, true
or yes
; returns
false
otherwise.
public boolean get(boolean defaultValue)
Returns true
if the property exists, and its value is
1
, true
or yes
; returns
false
otherwise.
public boolean set(boolean value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |