| |
|
| java.lang.Object org.apache.harmony.rmi.common.GetBooleanPropAction
GetBooleanPropAction | public class GetBooleanPropAction implements PrivilegedAction(Code) | | Action for obtaining boolean value from properties.
author: Mikhail A. Markov version: $Revision: 1.1.2.2 $ |
Constructor Summary | |
public | GetBooleanPropAction(String propName) Constructs GetBooleanPropAction to read property with the given name. | public | GetBooleanPropAction(String propName, boolean defaultVal) Constructs GetBooleanPropAction to read property with the given name
and the specified default value. |
Method Summary | |
public Object | run() Obtains boolean value from the property with the name specified in
constructor and returns it as a result (if this property does not
exist - the default value will be returned). |
GetBooleanPropAction | public GetBooleanPropAction(String propName)(Code) | | Constructs GetBooleanPropAction to read property with the given name.
Parameters: propName - the name of the property to be read |
GetBooleanPropAction | public GetBooleanPropAction(String propName, boolean defaultVal)(Code) | | Constructs GetBooleanPropAction to read property with the given name
and the specified default value.
Parameters: propName - the name of the property to be read Parameters: defaultVal - default value for the property |
run | public Object run()(Code) | | Obtains boolean value from the property with the name specified in
constructor and returns it as a result (if this property does not
exist - the default value will be returned).
value read or the default value if property to be read is not set |
|
|
|