| Constructor and Description |
|---|
JcrValueMap(javax.jcr.Node node,
HelperData helper)
Create a new JCR property map based on a node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
protected String |
escapeKeyName(String key)
Handles key name escaping by taking into consideration if it contains a
registered prefix
|
Object |
get(Object aKey) |
<T> T |
get(String aKey,
Class<T> type) |
<T> T |
get(String aKey,
T defaultValue) |
protected javax.jcr.Node |
getNode()
Get the node.
|
String |
getPath()
Deprecated.
|
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> t) |
Object |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic JcrValueMap(javax.jcr.Node node,
HelperData helper)
node - The underlying node.protected javax.jcr.Node getNode()
public <T> T get(String aKey, Class<T> type)
get in interface org.apache.sling.api.resource.ValueMapValueMap.get(java.lang.String, java.lang.Class)public <T> T get(String aKey, T defaultValue)
get in interface org.apache.sling.api.resource.ValueMapValueMap.get(java.lang.String, java.lang.Object)public Object get(Object aKey)
get in interface Map<String,Object>Map.get(java.lang.Object)public boolean containsKey(Object key)
containsKey in interface Map<String,Object>Map.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface Map<String,Object>Map.containsValue(java.lang.Object)public boolean isEmpty()
isEmpty in interface Map<String,Object>Map.isEmpty()public int size()
size in interface Map<String,Object>Map.size()public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>Map.entrySet()public Set<String> keySet()
keySet in interface Map<String,Object>Map.keySet()public Collection<Object> values()
values in interface Map<String,Object>Map.values()@Deprecated public String getPath()
IllegalStateException - If a repository exception occursprotected String escapeKeyName(String key) throws javax.jcr.RepositoryException
key - the key to escapejavax.jcr.RepositoryException - if the repository's namespaced prefixes cannot be retrievedCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.