public class PropertyBag extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PropertyBag(List<String> propertyNames) |
PropertyBag(List<String> propertyNames,
boolean removeUnderscore) |
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean(String property,
boolean defaultValue) |
double |
asDouble(String property) |
double |
asDouble(String property,
double defaultValue) |
int |
asInt(String property) |
int |
asInt(String property,
int defaultValue) |
boolean |
equals(Object obj) |
String |
getId(String property) |
String |
getId0(String property) |
String |
getLocal(String property) |
int |
hashCode() |
boolean |
isClassProperty(String name) |
boolean |
isMultivaluedProperty(String name) |
boolean |
isResource(String name) |
String |
namespacePrefix(String name) |
List<String> |
propertyNames() |
void |
putNonNull(String key,
String value) |
void |
setClassPropertyNames(List<String> classPropertyNames) |
void |
setMultivaluedProperty(List<String> multiValuedPropertyNames) |
void |
setResourceNames(List<String> resourceNames) |
String |
tabulate() |
String |
tabulate(String title) |
String |
tabulateLocals() |
String |
tabulateLocals(String title) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
toString
public double asDouble(String property)
public double asDouble(String property, double defaultValue)
public boolean asBoolean(String property, boolean defaultValue)
public int asInt(String property)
public int asInt(String property, int defaultValue)
public String tabulateLocals()
public String tabulate()
public int hashCode()
public final boolean equals(Object obj)
public boolean isResource(String name)
public boolean isClassProperty(String name)
public boolean isMultivaluedProperty(String name)
Copyright © 2020. All rights reserved.