| java.lang.Object org.apache.harmony.rmi.common.GetStringPropAction
GetStringPropAction | public class GetStringPropAction implements PrivilegedAction<String>(Code) | | Action for obtaining properties holding string values.
|
Constructor Summary | |
public | GetStringPropAction(String propName) Constructs GetStringPropAction to read property with the given name. | public | GetStringPropAction(String propName, String defaultVal) Constructs GetStringPropAction to read property with the given name
and the specified default value. |
Method Summary | |
public String | run() Reads the property with the name specified in constructor and returns it
as a result; if value read is null, then default value (possibly
null) will be returned. |
GetStringPropAction | public GetStringPropAction(String propName)(Code) | | Constructs GetStringPropAction to read property with the given name.
Parameters: propName - the name of the property to be read |
GetStringPropAction | public GetStringPropAction(String propName, String defaultVal)(Code) | | Constructs GetStringPropAction 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 String run()(Code) | | Reads the property with the name specified in constructor and returns it
as a result; if value read is null, then default value (possibly
null) will be returned.
property read or defaultValue if property read is null |
|
|