Package lumis.doui.source
Class SourceData
- java.lang.Object
-
- lumis.doui.source.AbstractSourceData
-
- lumis.doui.source.SourceData
-
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>
,ISourceData
@StableMinor(version="16.1", sinceVersion="4.0") public class SourceData extends AbstractSourceData
The default concrete implementation for theISourceData
. This implementation has a internalHashMap
to store the values. It assumes that the data key is equals to a source's field id.- Since:
- 4.0.4
- Version:
- $Revision: 26157 $ $Date: 2024-01-13 11:35:03 -0300 (Sat, 13 Jan 2024) $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>
dataMap
The internal data Map that the call are delegated to.-
Fields inherited from class lumis.doui.source.AbstractSourceData
source
-
-
Constructor Summary
Constructors Constructor Description SourceData()
Creates a source data without source associated.SourceData(Source source)
Creates a source data associated with the given source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>
entrySet()
java.lang.Object
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<java.lang.String>
keySet()
java.lang.Object
put(java.lang.String key, java.lang.Object value)
java.lang.Object
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
java.util.Collection<java.lang.Object>
values()
-
Methods inherited from class lumis.doui.source.AbstractSourceData
convertValue, get, getValueClass, putAll
-
-
-
-
Constructor Detail
-
SourceData
public SourceData(Source source)
Creates a source data associated with the given source.- Parameters:
source
- the source that this data will belong to.- Since:
- 4.0.4
-
SourceData
public SourceData()
Creates a source data without source associated.- Parameters:
source
- the source that this data will belong to.- Since:
- 4.0.4
-
-
Method Detail
-
clear
public void clear()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
-
get
public java.lang.Object get(java.lang.Object key)
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<java.lang.String> keySet()
-
put
public java.lang.Object put(java.lang.String key, java.lang.Object value)
-
remove
public java.lang.Object remove(java.lang.Object key)
-
size
public int size()
-
values
public java.util.Collection<java.lang.Object> values()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-