com.timeindexing.index
Class IndexProperties

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bycom.timeindexing.util.CascadingMap
              extended bycom.timeindexing.index.IndexProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class IndexProperties
extends CascadingMap

The index properties are a map of names to objects.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
IndexProperties()
          A constructor.
IndexProperties(IndexProperties aSubMap)
          A constructor which specifies a submap
IndexProperties(java.util.Properties properties)
          Construct some IndexProperties using a Properties object.
 
Method Summary
 java.lang.Object getProperty(java.lang.Object key)
          Get an entry from the IndexProperties.
 IndexProperties putProperty(java.lang.Object key, java.lang.Object value)
          Put an entry in the IndexProperties.
 
Methods inherited from class com.timeindexing.util.CascadingMap
containsKey, depth, get, getSubmap, hasSubmap, keySet
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsValue, entrySet, equals, hashCode, isEmpty, put, putAll, remove, size, values
 

Constructor Detail

IndexProperties

public IndexProperties()
A constructor.


IndexProperties

public IndexProperties(java.util.Properties properties)
Construct some IndexProperties using a Properties object. These mappings will have String objects.


IndexProperties

public IndexProperties(IndexProperties aSubMap)
A constructor which specifies a submap

Parameters:
aSubMap - an existing IndexProperties which will be a submap to this IndexProperties
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Get an entry from the IndexProperties.


putProperty

public IndexProperties putProperty(java.lang.Object key,
                                   java.lang.Object value)
Put an entry in the IndexProperties. This version returns the IndexProperties object, so it can be composed.

Returns:
the IndexProperties object