net.javamud.data
Class PersistentObject

java.lang.Object
  |
  +--net.javamud.data.PersistentObject
All Implemented Interfaces:
Persisted

public class PersistentObject
extends Object
implements Persisted

This stores a MudObject in a ready-to-persist-to-file form.

Author:
Timothy Hinchcliffe
Created On:
13 April 2003

Field Summary
 PersistentProperties extendedProperties
          The extended properties from the MudObject are stored in here.
 String identity
          The unique identity from the MudObject.
 MudObject mudObject
          Link to the original MudObject (unless persisted).
 boolean persisted
          If true, properties and extendedProperties are filled out.
 PersistentProperties properties
          Basic properties for the MudObject.
 String type
          Type of the MudObject.
 
Constructor Summary
PersistentObject()
          Constructor for the PersistentObject object
 
Method Summary
 void importMudObject(MudObject obj)
          Constructs a PersistentObject from the given MudObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extendedProperties

public PersistentProperties extendedProperties
The extended properties from the MudObject are stored in here.


identity

public String identity
The unique identity from the MudObject.


mudObject

public MudObject mudObject
Link to the original MudObject (unless persisted).


persisted

public boolean persisted
If true, properties and extendedProperties are filled out. If false, those fields have yet to be filled out from mudObject.


properties

public PersistentProperties properties
Basic properties for the MudObject.


type

public String type
Type of the MudObject.

Constructor Detail

PersistentObject

public PersistentObject()
Constructor for the PersistentObject object

Method Detail

importMudObject

public void importMudObject(MudObject obj)
Constructs a PersistentObject from the given MudObject

Parameters:
obj - MudObject to construct