Method getProperty(String key, String defaultValue)
Return type:
java.lang.String
Member of:
java.util.Properties
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return DBType.findByName(PropertyManager.getGroup("config").getProperty("db_type","oracle"));
2
nameText.setText(session.getProperty("bean.bean",session.getProperty("db.tablename","")));
3
sysOS = sys.getProperty("os.name","unknown");
4
int count = Integer.parseInt(_properties.getProperty("majix.templates.count", "0"));
5
driverText.setText(session.getProperty("db.drivername",""));
6
int cacheSize = Integer.parseInt(props.getProperty("cachesize", "1000"));
7
String comp = prop.getProperty ("compress", "true");
8
botname = ircApp.getProps().getProperty("botname", "bugbot");
9
String outStr = jReq.getPrefs().getProperty("JCVSlet.busy.title", "jCVS Servlet Busy");
10
return Integer.parseInt(props.getProperty(name, "0").trim());
11
String value = stringProps.getProperty(key, defaultValue ? "true"
12
this.getProperty(
13
String label = props.getProperty("label", clg("CTL_No_label_configured"));
14
String val = getProperty(key, "").trim();
15
String str = server.props.getProperty(prefix + "file", "busy.html");
16
if (getBuildProperties().getProperty("sourcePlugin", null) == null) { //$NON-NLS-1$
17
= propertiesDescription.getProperty( key , "" );
18
return (Boolean.valueOf(props.getProperty(prop, String.valueOf(def)))).booleanValue();
19
_registryPort = p_properties.getProperty(ServicesConstants.PARAM_REGISTRY_PORT, ServicesConstants.DEFAULT_REGISTRY_PORT);
20
.getProperty(propName, Integer.toString(defaultVal))
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.