T
- Map component type. Key is always String containing a relative xpath.public interface XBAutoMap<T> extends Map<String,T>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all elements below the element this map is bound to.
|
boolean |
containsKey(CharSequence path)
Checks existence of value at given xpath.
|
boolean |
containsKey(Object path)
Deprecated.
Please use stronger typed XBAutoMap#get(CharSequence) instead.
|
boolean |
containsValue(Object value)
Just like java.util.Map#containsValue(java.lang.Object).
|
T |
get(CharSequence path)
Resolve given xpath and return the result.
|
<E> E |
get(CharSequence path,
Class<E> asType)
Resolve given path and return the result as the given type.
|
T |
get(Object path)
Deprecated.
Please use stronger typed XBAutoMap#get(CharSequence) instead.
|
XBAutoList<T> |
getList(CharSequence path)
Resolve given path and return the result as list of given type.
|
<E> XBAutoList<E> |
getList(CharSequence path,
Class<E> ofType)
Resolve given path and return the result as list of given type.
|
T |
put(String path,
T value)
Sets the value at the given xpath to a new value.
|
compute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
void clear()
clear
in interface Map<String,T>
AbstractMap.clear()
@Deprecated T get(Object path)
get
in interface Map<String,T>
Map.get(java.lang.Object)
T get(CharSequence path)
path
- xpath relative to the bound element.<E> E get(CharSequence path, Class<E> asType)
path
- asType
- XBAutoList<T> getList(CharSequence path)
path
- <E> XBAutoList<E> getList(CharSequence path, Class<E> ofType)
path
- ofType
- list component type@Deprecated boolean containsKey(Object path)
containsKey
in interface Map<String,T>
Map.containsKey(java.lang.Object)
boolean containsKey(CharSequence path)
path
- boolean containsValue(Object value)
containsValue
in interface Map<String,T>
value
- Map.containsValue(java.lang.Object)
T put(String path, T value)
put
in interface Map<String,T>
path
- xpath relative to bound elementvalue
- new value to be setMap.put(java.lang.Object, java.lang.Object)
Copyright © 2012-12-21-2018. All Rights Reserved.