|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.jcr.resource.JcrPropertyMap
public class JcrPropertyMap
An implementation of the value map based on a JCR node.
JcrModifiablePropertyMap| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from interface org.apache.sling.api.resource.ValueMap |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
JcrPropertyMap(javax.jcr.Node node)
Constructor |
|
JcrPropertyMap(javax.jcr.Node node,
ClassLoader dynamicCL)
Constructor |
|
| Method Summary | ||
|---|---|---|
void |
clear()
|
|
boolean |
containsKey(Object key)
|
|
boolean |
containsValue(Object value)
|
|
Set<Map.Entry<String,Object>> |
entrySet()
|
|
Object |
get(Object aKey)
|
|
|
get(String aKey,
Class<T> type)
Get a named property and convert it into the given type. |
|
|
get(String aKey,
T defaultValue)
Get a named property and convert it into the given type. |
|
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()
|
|
Collection<Object> |
values()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public <T> T get(String aKey,
Class<T> type)
ValueMap
get in interface ValueMapaKey - The name of the propertytype - The class of the type
null if
non existing or can't be converted.ValueMap.get(java.lang.String, java.lang.Class)
public <T> T get(String aKey,
T defaultValue)
ValueMap
get 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 occurspublic void clear()
clear in interface Map<String,Object>
public Object put(String key,
Object value)
put in interface Map<String,Object>public void putAll(Map<? extends String,? extends Object> t)
putAll in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||