de.hpi.fgis.dude.util.data.storage
Class AbstractDuDeStorage<T extends Jsonable>

java.lang.Object
  extended by de.hpi.fgis.dude.util.data.storage.AbstractDuDeStorage<T>
Type Parameters:
T - The Jsonable type whose instances are stored in the DuDeStorage.
All Implemented Interfaces:
DuDeStorage<T>, JsonReadable<T>, JsonWritable<T>
Direct Known Subclasses:
FileBasedStorage, InMemoryStorage

public abstract class AbstractDuDeStorage<T extends Jsonable>
extends Object
implements DuDeStorage<T>

AbstractDuDeStorage stores Jsonable instances. It is a skeleton class of the DuDeStorage and implements some of the methods that are provided by this interface.

Author:
Matthias Pohl

Nested Class Summary
protected static class AbstractDuDeStorage.AbstractJsonableWriter<T extends Jsonable>
          AbstractDuDeStorage.AbstractJsonableWriter implements some functionality that shall be provided by all JsonableWriter sub-classes.
 
Constructor Summary
AbstractDuDeStorage()
           
 
Method Summary
 void disableFormattedJson()
          Disables formatted Json for this storage.
 void enableFormattedJson()
          Enables formatted Json for this storage.
 boolean isFormattedJson()
          Checks whether formatted Json is enabled in this storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.hpi.fgis.dude.util.data.storage.JsonReadable
getReader, size
 
Methods inherited from interface de.hpi.fgis.dude.util.data.storage.JsonWritable
getWriter
 

Constructor Detail

AbstractDuDeStorage

public AbstractDuDeStorage()
Method Detail

isFormattedJson

public boolean isFormattedJson()
Description copied from interface: JsonWritable
Checks whether formatted Json is enabled in this storage.

Specified by:
isFormattedJson in interface JsonWritable<T extends Jsonable>
Returns:
true, if it is enabled; otherwise false.

enableFormattedJson

public void enableFormattedJson()
Description copied from interface: JsonWritable
Enables formatted Json for this storage.

Specified by:
enableFormattedJson in interface JsonWritable<T extends Jsonable>

disableFormattedJson

public void disableFormattedJson()
Description copied from interface: JsonWritable
Disables formatted Json for this storage.

Specified by:
disableFormattedJson in interface JsonWritable<T extends Jsonable>


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.