eu.larkc.core.data
Class AttributeValueMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
eu.larkc.core.data.AttributeValueMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>
public class AttributeValueMap
- extends java.util.HashMap<java.lang.String,java.lang.String>
Convenience method to pass aroung arguments as attribute/value pairs. TODO something better from a KR perspective
- Author:
- spyros
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Method Summary |
java.lang.String |
put(java.lang.String key,
java.lang.String value)
|
SetOfStatements |
toRDF()
Get an RDF representation of the attribute/value map. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
AttributeValueMap
public AttributeValueMap()
toRDF
public SetOfStatements toRDF()
- Get an RDF representation of the attribute/value map. To the the attribute/value map from the RDF, use the DataFactory.
- Returns:
- an RDF representation of this attribute/value map
put
public java.lang.String put(java.lang.String key,
java.lang.String value)
- Specified by:
put
in interface java.util.Map<java.lang.String,java.lang.String>
- Overrides:
put
in class java.util.HashMap<java.lang.String,java.lang.String>