net.ontopia.topicmaps.utils.tmprefs
Class TopicMapPreferences

java.lang.Object
  extended by java.util.prefs.Preferences
      extended by java.util.prefs.AbstractPreferences
          extended by net.ontopia.topicmaps.utils.tmprefs.TopicMapPreferences

public class TopicMapPreferences
extends AbstractPreferences


Field Summary
protected  HashMap<String,TopicMapPreferences> children
           
protected  TopicMapPreferencesFactory factory
           
protected  HashMap<String,String> properties
           
protected  TopicIF topic
           
protected  TopicMapReferenceIF topicMapReference
           
 
Fields inherited from class java.util.prefs.AbstractPreferences
lock, newNode
 
Fields inherited from class java.util.prefs.Preferences
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH
 
Method Summary
 String[] childrenNamesSpi()
           
 TopicMapPreferences childSpi(String name)
           
protected  TopicMapStoreIF createStore(TopicMapReferenceIF topicMapReference, boolean readonly)
           
static TopicMapPreferences createSystemRoot(TopicMapReferenceIF topicMapReference, TopicMapPreferencesFactory factory)
           
protected  TopicIF createTopic(TopicMapIF topicmap)
           
static TopicMapPreferences createUserRoot(TopicMapReferenceIF topicMapReference, TopicMapPreferencesFactory factory)
           
protected  Set<TopicIF> fetchChildren(TopicMapIF topicmap, TopicIF topic)
           
protected  Set<OccurrenceIF> fetchProperties(TopicMapIF topicmap)
           
protected  TopicIF fetchPropertyType(String key, TopicMapIF topicmap)
           
protected  TopicIF fetchTopic(TopicMapIF topicmap)
           
 void flushSpi()
           
 String getSpi(String key)
           
 boolean isUserNode()
           
 String[] keysSpi()
           
protected  void mergeTopics(TopicIF targetTopic, TopicIF sourceTopic)
           
 void putSpi(String key, String value)
           
 void removeNodeSpi()
           
 void removeSpi(String key)
           
protected  void removeTopic(TopicMapIF topicmap, TopicIF topic)
           
protected  TopicIF revitalize(TopicIF topic, TopicMapIF topicmap)
           
 void syncSpi()
           
 
Methods inherited from class java.util.prefs.AbstractPreferences
absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, flush, get, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, sync, toString
 
Methods inherited from class java.util.prefs.Preferences
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

children

protected HashMap<String,TopicMapPreferences> children

properties

protected HashMap<String,String> properties

factory

protected final TopicMapPreferencesFactory factory

topicMapReference

protected TopicMapReferenceIF topicMapReference

topic

protected TopicIF topic
Method Detail

createSystemRoot

public static TopicMapPreferences createSystemRoot(TopicMapReferenceIF topicMapReference,
                                                   TopicMapPreferencesFactory factory)

createUserRoot

public static TopicMapPreferences createUserRoot(TopicMapReferenceIF topicMapReference,
                                                 TopicMapPreferencesFactory factory)

isUserNode

public boolean isUserNode()
Overrides:
isUserNode in class AbstractPreferences

getSpi

public String getSpi(String key)
Specified by:
getSpi in class AbstractPreferences

putSpi

public void putSpi(String key,
                   String value)
Specified by:
putSpi in class AbstractPreferences

removeSpi

public void removeSpi(String key)
Specified by:
removeSpi in class AbstractPreferences

childSpi

public TopicMapPreferences childSpi(String name)
Specified by:
childSpi in class AbstractPreferences

removeNodeSpi

public void removeNodeSpi()
Specified by:
removeNodeSpi in class AbstractPreferences

keysSpi

public String[] keysSpi()
Specified by:
keysSpi in class AbstractPreferences

childrenNamesSpi

public String[] childrenNamesSpi()
Specified by:
childrenNamesSpi in class AbstractPreferences

syncSpi

public void syncSpi()
             throws BackingStoreException
Specified by:
syncSpi in class AbstractPreferences
Throws:
BackingStoreException

flushSpi

public void flushSpi()
              throws BackingStoreException
Specified by:
flushSpi in class AbstractPreferences
Throws:
BackingStoreException

createStore

protected TopicMapStoreIF createStore(TopicMapReferenceIF topicMapReference,
                                      boolean readonly)
                               throws BackingStoreException
Throws:
BackingStoreException

fetchChildren

protected Set<TopicIF> fetchChildren(TopicMapIF topicmap,
                                     TopicIF topic)

fetchProperties

protected Set<OccurrenceIF> fetchProperties(TopicMapIF topicmap)

fetchPropertyType

protected TopicIF fetchPropertyType(String key,
                                    TopicMapIF topicmap)

fetchTopic

protected TopicIF fetchTopic(TopicMapIF topicmap)
                      throws BackingStoreException
Throws:
BackingStoreException

createTopic

protected TopicIF createTopic(TopicMapIF topicmap)
                       throws BackingStoreException
Throws:
BackingStoreException

removeTopic

protected void removeTopic(TopicMapIF topicmap,
                           TopicIF topic)
                    throws BackingStoreException
Throws:
BackingStoreException

mergeTopics

protected void mergeTopics(TopicIF targetTopic,
                           TopicIF sourceTopic)
                    throws BackingStoreException
Throws:
BackingStoreException

revitalize

protected TopicIF revitalize(TopicIF topic,
                             TopicMapIF topicmap)


Copyright © 2000-2012 Ontopia.