The list of methods to do Dictionary Usage are organized into topic(s).
Boolean
getBoolean(Dictionary p, Object key, Boolean defaultValue) get Boolean
Object value = p.get(key);
if (value == null)
return defaultValue;
if (value instanceof Boolean)
return (Boolean) value;
String s = value.toString().toLowerCase().trim();
if (s.equals("true") || s.equals("yes"))
return new Boolean(true);
...
String
getSpringContextHeader(Dictionary headers) Return the #SPRING_CONTEXT_HEADER if present from the given dictionary.
Object header = null;
if (headers != null)
header = headers.get(SPRING_CONTEXT_HEADER);
return (header != null ? header.toString().trim() : null);
Boolean
getState(Dictionary conf, String property) Getter for the state of a boolean type property.
Object value = conf.get(property);
if (value instanceof String) {
String strVal = ((String) value).trim();
if ("0".equals(strVal)) {
return false;
} else if ("1".equals(strVal)) {
return true;
} else {
...