org.tm4j.topicmap.index
Class IndexMetaImpl

java.lang.Object
  extended byorg.tm4j.topicmap.index.IndexMetaImpl
All Implemented Interfaces:
IndexMeta, java.io.Serializable

public class IndexMetaImpl
extends java.lang.Object
implements IndexMeta, java.io.Serializable

Simple implementation of the IndexMeta interface.

See Also:
Serialized Form

Constructor Summary
IndexMetaImpl(boolean isAutomaticallyOpened, boolean isAutomaticallyUpdated)
          Construct a new IndexMetaImpl reflecting the specified meta data values.
 
Method Summary
 boolean isAutomaticallyOpened()
          Determines whether or not this index is always returned opened by the IndexManager.
 boolean isAutomaticallyUpdated()
          Determines whether or not this index is automatically updated from events on the TopicMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexMetaImpl

public IndexMetaImpl(boolean isAutomaticallyOpened,
                     boolean isAutomaticallyUpdated)
Construct a new IndexMetaImpl reflecting the specified meta data values.

Parameters:
isAutomaticallyOpened - the value to be returned by the method isAutomaticallyOpened()
isAutomaticallyUpdated - the value to be returned by the method isAutomaticallyUpdated()
Method Detail

isAutomaticallyOpened

public boolean isAutomaticallyOpened()
Description copied from interface: IndexMeta
Determines whether or not this index is always returned opened by the IndexManager.

Specified by:
isAutomaticallyOpened in interface IndexMeta
Returns:
false if the user must call Index.open() before using the index, true otherwise.

isAutomaticallyUpdated

public boolean isAutomaticallyUpdated()
Description copied from interface: IndexMeta
Determines whether or not this index is automatically updated from events on the TopicMap.

Specified by:
isAutomaticallyUpdated in interface IndexMeta