org.silverpeas.jstl.constant.reflect
Class ClassConstantsMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.silverpeas.jstl.constant.reflect.ClassConstantsMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class ClassConstantsMap
extends HashMap<String,Object>

Extension of java.util.HashMap that enforces a "strict" get() method in that it will throw an exception if the specified key has no corresponding Map entry.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ClassConstantsMap(String className)
           
 
Method Summary
 Object get(Object key)
           
protected  void init()
           
 Object put(String key, Object value)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, 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
equals, hashCode
 

Constructor Detail

ClassConstantsMap

public ClassConstantsMap(String className)
                  throws ClassNotFoundException,
                         IllegalArgumentException,
                         IllegalAccessException
Throws:
ClassNotFoundException
IllegalArgumentException
IllegalAccessException
Method Detail

init

protected final void init()
                   throws ClassNotFoundException,
                          IllegalArgumentException,
                          IllegalAccessException
Throws:
ClassNotFoundException
IllegalArgumentException
IllegalAccessException

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>
Overrides:
get in class HashMap<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>
Overrides:
put in class HashMap<String,Object>


Copyright © 2016 Silverpeas. All Rights Reserved.