ValueMap.@Deprecated public class JcrPropertyMap extends Object implements ValueMap
JcrModifiablePropertyMap| Constructor and Description |
|---|
JcrPropertyMap(javax.jcr.Node node)
Deprecated.
Create a new JCR property map based on a node.
|
JcrPropertyMap(javax.jcr.Node node,
ClassLoader dynamicCL)
Deprecated.
Create a new JCR property map based on a node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
|
boolean |
containsKey(Object key)
Deprecated.
|
boolean |
containsValue(Object value)
Deprecated.
|
Set<Map.Entry<String,Object>> |
entrySet()
Deprecated.
|
protected String |
escapeKeyName(String key)
Deprecated.
Handles key name escaping by taking into consideration if it contains a
registered prefix
|
Object |
get(Object aKey)
Deprecated.
|
<T> T |
get(String aKey,
Class<T> type)
Deprecated.
Get a named property and convert it into the given type.
|
<T> T |
get(String aKey,
T defaultValue)
Deprecated.
Get a named property and convert it into the given type.
|
protected String[] |
getNamespacePrefixes()
Deprecated.
Read namespace prefixes and store as member variable to minimize number of JCR API calls
|
protected javax.jcr.Node |
getNode()
Deprecated.
Get the node.
|
String |
getPath()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Set<String> |
keySet()
Deprecated.
|
Object |
put(String key,
Object value)
Deprecated.
|
void |
putAll(Map<? extends String,? extends Object> t)
Deprecated.
|
Object |
remove(Object key)
Deprecated.
|
int |
size()
Deprecated.
|
String |
toString()
Deprecated.
|
Collection<Object> |
values()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic JcrPropertyMap(javax.jcr.Node node)
node - The underlying node.public JcrPropertyMap(javax.jcr.Node node,
ClassLoader dynamicCL)
node - The underlying node.dynamicCL - Dynamic class loader for loading serialized objects.protected javax.jcr.Node getNode()
public <T> T get(String aKey, Class<T> type)
ValueMapnull in this
case.get in interface ValueMapaKey - The name of the propertytype - The class of the typenull if
non existing or can't be converted.ValueMap.get(java.lang.String, java.lang.Class)public <T> T get(String aKey, T defaultValue)
ValueMapget in interface ValueMapaKey - The name of the propertydefaultValue - The default value to use if the named property does
not exist or cannot be converted to the requested type. The
default value is also used to define the type to convert the
value to. If this is null any existing property is
not converted.ValueMap.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 retrievedprotected String[] getNamespacePrefixes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the namespace prefixes cannot be retrievedCopyright © 2015 The Apache Software Foundation. All rights reserved.