org.apache.abdera.i18n.templates
Class HashMapContext
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.apache.abdera.i18n.templates.HashMapContext
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<String>, Map<String,Object>, Context
public final class HashMapContext
- extends HashMap<String,Object>
- implements Context
Context implementation based on a HashMap
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface org.apache.abdera.i18n.templates.Context |
clear |
HashMapContext
public HashMapContext()
HashMapContext
public HashMapContext(Map<String,Object> map)
HashMapContext
public HashMapContext(Map<String,Object> map,
boolean isiri)
resolve
public <T> T resolve(String var)
- Description copied from interface:
Context
- Resolve a value for the specified variable. The method can return either a String, an Array or a Collection.
- Specified by:
resolve
in interface Context
isIri
public boolean isIri()
- Description copied from interface:
Context
- True if IRI expansion is enabled
- Specified by:
isIri
in interface Context
setIri
public void setIri(boolean isiri)
- Description copied from interface:
Context
- True if IRI expansion is to be enabled
- Specified by:
setIri
in interface Context
iterator
public Iterator<String> iterator()
- Specified by:
iterator
in interface Iterable<String>
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map<String,Object>
- Overrides:
hashCode
in class AbstractMap<String,Object>
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Map<String,Object>
- Overrides:
equals
in class AbstractMap<String,Object>
isNormalizing
public boolean isNormalizing()
setNormalizing
public void setNormalizing(boolean normalizing)
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.