org.silverpeas.jstl.constant.reflect
Class ClassConstantsMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
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
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
ClassConstantsMap
public ClassConstantsMap(String className)
throws ClassNotFoundException,
IllegalArgumentException,
IllegalAccessException
- Throws:
ClassNotFoundException
IllegalArgumentException
IllegalAccessException
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.