org.mycore.backend.jdom
Class MCRJDOMMemoryStore

java.lang.Object
  extended by org.mycore.backend.jdom.MCRJDOMMemoryStore

public class MCRJDOMMemoryStore
extends Object

This class implements the memory store based on JDOM documents.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Jens Kupferschmidt, Frank L�tzenkirchen

Method Summary
(package private)  void addElement(MCRObjectID id, Document doc)
          Adds an objects xml metadata to the memory store.
(package private)  void debug(String type)
          Debug the content of the Hashtable.
(package private)  Hashtable getObjects(String type)
          Returns a list of all object metadata for a given object type
static MCRJDOMMemoryStore instance()
          Returns the singleton.
(package private)  void removeElement(MCRObjectID id)
          Removes an object from the memory store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static MCRJDOMMemoryStore instance()
Returns the singleton.


getObjects

Hashtable getObjects(String type)
Returns a list of all object metadata for a given object type


addElement

void addElement(MCRObjectID id,
                Document doc)
Adds an objects xml metadata to the memory store.


removeElement

void removeElement(MCRObjectID id)
Removes an object from the memory store.


debug

void debug(String type)
Debug the content of the Hashtable.