org.exoplatform.forum.common.jcr
Class PropertyReader
java.lang.Object
org.exoplatform.forum.common.jcr.PropertyReader
public class PropertyReader
- extends Object
A simple util wrapper to read JCR Nodes properties easily.
- Version:
- $Revision$
- Author:
- Patrice Lamarque
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyReader
public PropertyReader(javax.jcr.Node node)
d
public Double d(String name)
l
public long l(String name)
l
public long l(String name,
long l)
string
public String string(String name,
String defaultValue)
string
public String string(String name)
date
public Date date(String name)
date
public Date date(String name,
Date defaultValue)
bool
public Boolean bool(String name)
bool
public Boolean bool(String name,
boolean defaultValue)
stream
public InputStream stream(String name)
strings
public String[] strings(String name)
strings
public String[] strings(String name,
String[] defaultValue)
list
public List<String> list(String name)
list
public List<String> list(String name,
List<String> defaultValue)
set
public Set<String> set(String name)
set
public Set<String> set(String name,
Set<String> defaultValue)
valuesToArray
public static String[] valuesToArray(javax.jcr.Value[] Val)
throws Exception
- Throws:
Exception
valuesToList
public static List<String> valuesToList(javax.jcr.Value[] values)
throws Exception
- Throws:
Exception
readProperty
public Object readProperty(String propertyName,
Class returnedType)
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.