public final class JcrModifiableValueMap extends Object implements org.apache.sling.api.resource.ModifiableValueMap
| Constructor and Description |
|---|
JcrModifiableValueMap(javax.jcr.Node node,
ClassLoader dynamicCL)
Constructor
|
| 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) |
String |
getPath()
Return the path of the current node.
|
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String aKey,
Object value) |
void |
putAll(Map<? extends String,? extends Object> t) |
Object |
remove(Object aKey) |
int |
size() |
Collection<Object> |
values() |
public JcrModifiableValueMap(javax.jcr.Node node,
ClassLoader dynamicCL)
node - The underlying node.dynamicCL - Dynamic class loader for loading serialized objects.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()public String getPath()
IllegalStateException - If a repository exception occursprotected String escapeKeyName(String key) throws javax.jcr.RepositoryException
key - javax.jcr.RepositoryExceptionpublic void clear()
clear in interface Map<String,Object>Map.clear()public Object put(String aKey, Object value)
put in interface Map<String,Object>Map.put(java.lang.Object, java.lang.Object)public void putAll(Map<? extends String,? extends Object> t)
putAll in interface Map<String,Object>Map.putAll(java.util.Map)Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.