com.timeindexing.index
Class IndexProperties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.timeindexing.util.CascadingMap
              extended by com.timeindexing.index.IndexProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class IndexProperties
extends CascadingMap

The index properties are a map of names to objects.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
IndexProperties()
          A constructor.
IndexProperties(IndexProperties aSubMap)
          A constructor which specifies a submap
IndexProperties(java.util.Map map)
          Construct some IndexProperties using a Map object.
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(java.util.Map map)
Construct some IndexProperties using a Map object.


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


Timeindexing 2008