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 <zamarrenolm at aia.es>
See Also:
  • Constructor Details

    • PropertyBag

      public PropertyBag(List<String> propertyNames, boolean decodeEscapedIdentifiers)
    • PropertyBag

      public PropertyBag(List<String> propertyNames, boolean removeInitialUnderscoreForIdentifiers, boolean decodeEscapedIdentifiers)
  • Method Details

    • propertyNames

      public List<String> propertyNames()
    • putNonNull

      public void putNonNull(String key, String value)
    • getLocal

      public String getLocal(String property)
    • getLocals

      public String[] getLocals(String property, String separator)
    • getId

      public String getId(String property)
    • getId0

      public String getId0(String property)
    • asDouble

      public double asDouble(String property)
    • asDouble

      public double asDouble(String property, double defaultValue)
    • asBoolean

      public Optional<Boolean> asBoolean(String property)
    • 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()
    • tabulateLocals

      public String tabulateLocals(String title)
    • tabulate

      public String tabulate(String title)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<String,String>
      Overrides:
      hashCode in class AbstractMap<String,String>
    • equals

      public final boolean equals(Object obj)
      Specified by:
      equals in interface Map<String,String>
      Overrides:
      equals in class AbstractMap<String,String>
    • isResource

      public boolean isResource(String name)
    • namespacePrefix

      public String namespacePrefix(String name)
    • setResourceNames

      public void setResourceNames(List<String> resourceNames)
    • setClassPropertyNames

      public void setClassPropertyNames(List<String> classPropertyNames)
    • isClassProperty

      public boolean isClassProperty(String name)
    • setMultivaluedProperty

      public void setMultivaluedProperty(List<String> multiValuedPropertyNames)
    • isMultivaluedProperty

      public boolean isMultivaluedProperty(String name)
    • copy

      public PropertyBag copy()