com.scit.sling.test
Class MockValueMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
com.scit.sling.test.MockValueMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>, org.apache.sling.api.resource.ValueMap
public class MockValueMap
- extends LinkedHashMap<String,Object>
- implements org.apache.sling.api.resource.ValueMap
A Mock ValueMap
that has some basic type conversion.
Dates should be stored as DateTime
objects.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface org.apache.sling.api.resource.ValueMap |
EMPTY |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
DATE_TIME_FORMAT
public static final org.joda.time.format.DateTimeFormatter DATE_TIME_FORMAT
MockValueMap
public MockValueMap()
get
public <T> T get(String name,
Class<T> type)
- Specified by:
get
in interface org.apache.sling.api.resource.ValueMap
get
public <T> T get(String name,
T defaultValue)
- Specified by:
get
in interface org.apache.sling.api.resource.ValueMap
Copyright © 2013 Southern Cross IT. All rights reserved.