Gridarta Editor
net.sf.gridarta.preferences.FilePreferences Class Referenceabstract
+ Inheritance diagram for net.sf.gridarta.preferences.FilePreferences:
+ Collaboration diagram for net.sf.gridarta.preferences.FilePreferences:

Public Member Functions

void flush () throws BackingStoreException
 
String get (@NotNull final String key, @Nullable final String def)
 
boolean getBoolean (@NotNull final String key, final boolean def)
 
double getDouble (@NotNull final String key, final double def)
 
float getFloat (@NotNull final String key, final float def)
 
int getInt (@NotNull final String key, final int def)
 
long getLong (@NotNull final String key, final long def)
 
void sync () throws BackingStoreException
 

Protected Member Functions

String[] childrenNamesSpi ()
 
AbstractPreferences childSpi (@NotNull final String name)
 
 FilePreferences (@Nullable final AbstractPreferences parent, @NotNull final String name, @NotNull final NodeType nodeType, @NotNull final Storage storage)
 
void flushSpi ()
 
String getSpi (@NotNull final String key)
 
Storage getStorage ()
 
String[] keysSpi ()
 
void putSpi (@NotNull final String key, @NotNull final String value)
 
void removeNodeSpi ()
 
void removeSpi (@NotNull final String key)
 
void syncSpi ()
 

Private Attributes

final String fullName
 
final NodeType nodeType
 
final Storage storage
 

Static Private Attributes

static final Category LOG = Logger.getLogger(FilePreferences.class)
 

Detailed Description

Implements a Preferences that stores all values in a Storage instance.

Author
Andreas Kirschbaum

Definition at line 36 of file FilePreferences.java.

Constructor & Destructor Documentation

◆ FilePreferences()

net.sf.gridarta.preferences.FilePreferences.FilePreferences ( @Nullable final AbstractPreferences  parent,
@NotNull final String  name,
@NotNull final NodeType  nodeType,
@NotNull final Storage  storage 
)
protected

Creates a new instance.

Parameters
parentthe parent node, or
null
if this node is the root node
namethe name of this node
nodeTypethe node type of this node
storagethe storage instance used for loading/saving values

Definition at line 71 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.fullName, net.sf.gridarta.preferences.NodeType.getPrefix(), net.sf.gridarta.preferences.Storage.newNode(), net.sf.gridarta.preferences.FilePreferences.nodeType, and net.sf.gridarta.preferences.FilePreferences.storage.

+ Here is the call graph for this function:

Member Function Documentation

◆ childrenNamesSpi()

String [] net.sf.gridarta.preferences.FilePreferences.childrenNamesSpi ( )
protected

◆ childSpi()

AbstractPreferences net.sf.gridarta.preferences.FilePreferences.childSpi ( @NotNull final String  name)
protected

◆ flush()

void net.sf.gridarta.preferences.FilePreferences.flush ( ) throws BackingStoreException

◆ flushSpi()

void net.sf.gridarta.preferences.FilePreferences.flushSpi ( )
protected

Definition at line 110 of file FilePreferences.java.

◆ get()

String net.sf.gridarta.preferences.FilePreferences.get ( @NotNull final String  key,
@Nullable final String  def 
)

◆ getBoolean()

boolean net.sf.gridarta.preferences.FilePreferences.getBoolean ( @NotNull final String  key,
final boolean  def 
)

Definition at line 169 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.putSpi().

+ Here is the call graph for this function:

◆ getDouble()

double net.sf.gridarta.preferences.FilePreferences.getDouble ( @NotNull final String  key,
final double  def 
)

Definition at line 176 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.putSpi().

+ Here is the call graph for this function:

◆ getFloat()

float net.sf.gridarta.preferences.FilePreferences.getFloat ( @NotNull final String  key,
final float  def 
)

Definition at line 183 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.putSpi().

+ Here is the call graph for this function:

◆ getInt()

int net.sf.gridarta.preferences.FilePreferences.getInt ( @NotNull final String  key,
final int  def 
)

Definition at line 190 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.putSpi().

+ Here is the call graph for this function:

◆ getLong()

long net.sf.gridarta.preferences.FilePreferences.getLong ( @NotNull final String  key,
final long  def 
)

Definition at line 197 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.putSpi().

+ Here is the call graph for this function:

◆ getSpi()

String net.sf.gridarta.preferences.FilePreferences.getSpi ( @NotNull final String  key)
protected

◆ getStorage()

Storage net.sf.gridarta.preferences.FilePreferences.getStorage ( )
protected

Returns the storage instance used for loading/saving values.

Returns
the storage instance

Definition at line 90 of file FilePreferences.java.

References net.sf.gridarta.preferences.FilePreferences.storage.

◆ keysSpi()

String [] net.sf.gridarta.preferences.FilePreferences.keysSpi ( )
protected

◆ putSpi()

◆ removeNodeSpi()

void net.sf.gridarta.preferences.FilePreferences.removeNodeSpi ( )
protected

◆ removeSpi()

void net.sf.gridarta.preferences.FilePreferences.removeSpi ( @NotNull final String  key)
protected

◆ sync()

void net.sf.gridarta.preferences.FilePreferences.sync ( ) throws BackingStoreException

◆ syncSpi()

void net.sf.gridarta.preferences.FilePreferences.syncSpi ( )
protected

Definition at line 251 of file FilePreferences.java.

Member Data Documentation

◆ fullName

◆ LOG

◆ nodeType

final NodeType net.sf.gridarta.preferences.FilePreferences.nodeType
private

◆ storage


The documentation for this class was generated from the following file: