net.javamud.data
Class Storage

java.lang.Object
  |
  +--net.javamud.data.Storage

public final class Storage
extends Object

Generic data storage class.

Author:
Timothy Hinchcliffe
Created On:
10 May 2002

Field Summary
 Set archiveQueue
          Set of MudObjects that the writer should also write out.
 Set containedIdentities
          Set of Identity Strings representing contained objects.
 String containerIdentity
          Identity String of container object.
 String identity
          Identity String of this object.
 PersistentProperties properties
          Properties for this object.
 String type
          Use this.setType(MudObject) to set.
 
Constructor Summary
Storage()
           
 
Method Summary
 void queue(MudObject mo)
          Add mo to archiveQueue
 void setType(MudObject mo)
          Sets the type attribute of the Storage object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archiveQueue

public Set archiveQueue
Set of MudObjects that the writer should also write out.


containedIdentities

public Set containedIdentities
Set of Identity Strings representing contained objects.


containerIdentity

public String containerIdentity
Identity String of container object.


identity

public String identity
Identity String of this object.


properties

public PersistentProperties properties
Properties for this object.


type

public String type
Use this.setType(MudObject) to set.

Constructor Detail

Storage

public Storage()
Method Detail

queue

public void queue(MudObject mo)
Add mo to archiveQueue

Parameters:
mo - MudObject that should be archived.

setType

public void setType(MudObject mo)
Sets the type attribute of the Storage object

Parameters:
mo - The MudObject to get the type from