|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.jcr.faces.util.PropertyHelper
public class PropertyHelper
Utilities for converting objects to and from JCR data types
Constructor Summary | |
---|---|
PropertyHelper()
|
Method Summary | |
---|---|
static Object |
getObjectFromProperty(Property property)
Converts the property value to a java object. |
static Object |
getObjectFromValue(Value value)
Converts the Value to a java object |
static Class |
getValueType(boolean isMulti,
int type)
Returns the value type for the specified property type |
static void |
setPropertyFromObject(Node node,
String propertyName,
Object value)
Convert the value object to the right format before calling Node.setProperty(..) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyHelper()
Method Detail |
---|
public static void setPropertyFromObject(Node node, String propertyName, Object value) throws RepositoryException, CommonException
node
- the target nodepropertyName
- the target property namevalue
- the target property value
RepositoryException
CommonException
public static Object getObjectFromProperty(Property property) throws RepositoryException
property
- the property to convert
RepositoryException
public static Object getObjectFromValue(Value value) throws RepositoryException
value
- the value to convert
RepositoryException
public static Class getValueType(boolean isMulti, int type)
isMulti
- true for a multi-value propertytype
- the property type constant. See PropertyType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |