Package com.powsybl.triplestore.api
Class PropertyBag
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String>
-
- com.powsybl.triplestore.api.PropertyBag
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String>
public class PropertyBag extends HashMap<String,String>
- Author:
- Luma ZamarreƱo
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description PropertyBag(List<String> propertyNames)
PropertyBag(List<String> propertyNames, boolean removeUnderscore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
PropertyBag
copy()
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)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
toString
-
-
-
-
Method Detail
-
asDouble
public double asDouble(String property)
-
asDouble
public double asDouble(String property, double defaultValue)
-
asBoolean
public boolean asBoolean(String property, boolean defaultValue)
-
asInt
public int asInt(String property)
-
asInt
public int asInt(String property, int defaultValue)
-
tabulateLocals
public String tabulateLocals()
-
tabulate
public String tabulate()
-
hashCode
public int hashCode()
-
equals
public final boolean equals(Object obj)
-
isResource
public boolean isResource(String name)
-
isClassProperty
public boolean isClassProperty(String name)
-
isMultivaluedProperty
public boolean isMultivaluedProperty(String name)
-
copy
public PropertyBag copy()
-
-