51Degrees Pipeline Java  4.1

51Degrees Pipeline for Java

fiftyone.pipeline.core.data.DataBase Class Reference abstract

Detailed Description

This implementation of Data stores data values as key/value pairs in a Map where the key is a string and the value can be any type.

Inheritance diagram for fiftyone.pipeline.core.data.DataBase:

[legend]

Collaboration diagram for fiftyone.pipeline.core.data.DataBase:

[legend]

Public Member Functions

 DataBase (Logger logger)
Construct a new instance with the default case insensitive Map as the underlying storage. More...
 DataBase (Logger logger, Map< String, Object > data)
Construct a new instance with a custom implementation of Map as the underlying storage. More...
Object  get (String key)
Get the value stored using the specified key. More...
void  put (String key, Object value)
Set the value stored using the specified key. More...
Map< String, Object >  asKeyMap ()
Get the data contained in this instance as a read only Map. More...
void  populateFromMap (Map< String, Object > values)
Use the values in the specified map to populate this data instance. More...

Protected Attributes

final Logger  logger

Constructor & Destructor Documentation

◆ DataBase() [1/2]

fiftyone.pipeline.core.data.DataBase.DataBase ( Logger   logger )

Construct a new instance with the default case insensitive Map as the underlying storage.

Parameters
logger - used for logging

◆ DataBase() [2/2]

fiftyone.pipeline.core.data.DataBase.DataBase ( Logger   logger,
Map< String, Object >   data  
)

Construct a new instance with a custom implementation of Map as the underlying storage.

Parameters
logger - used for logging
data - the Map to use as the underlying storage

Member Function Documentation

◆ asKeyMap()

Map<String, Object> fiftyone.pipeline.core.data.DataBase.asKeyMap ( )

Get the data contained in this instance as a read only Map.

Returns
the data

Implements fiftyone.pipeline.core.data.Data.

◆ get()

Object fiftyone.pipeline.core.data.DataBase.get ( String   key )

Get the value stored using the specified key.

Parameters
key - name of the property
Returns
value or null

Implements fiftyone.pipeline.core.data.Data.

◆ populateFromMap()

void fiftyone.pipeline.core.data.DataBase.populateFromMap ( Map< String, Object >   values )

Use the values in the specified map to populate this data instance.

The data will not be cleared before the new values are added. The new values will overwrite old values if any exist with the same keys.

Parameters
values - the values to transfer to this data instance

Implements fiftyone.pipeline.core.data.Data.

◆ put()

void fiftyone.pipeline.core.data.DataBase.put ( String   key,
Object   value  
)

Set the value stored using the specified key.

Parameters
key - name of the property
value - value for the property

Implements fiftyone.pipeline.core.data.Data.