|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.jcr.PropertyHelper
public final class PropertyHelper
Helper class with utility functions for handling Properties
.
Method Summary | |
---|---|
static PropertyData<?> |
getDefaultValue(PropertyDefinition<?> propDef)
Determine the default property data value for a given property definition. |
static String |
getStringProperty(Properties properties,
String name)
Retrieve a string value. |
static String |
getTypeId(Properties properties)
Gets the type id from a set of properties. |
static boolean |
isPropertyEmpty(PropertyData<?> prop)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getStringProperty(Properties properties, String name)
properties
- name
- the name of the value to retrieve
name
or null
if either
these are no string properties or no property of name
exists.public static String getTypeId(Properties properties)
public static boolean isPropertyEmpty(PropertyData<?> prop)
prop
-
true
iff prop
denotes an empty property data valuepublic static PropertyData<?> getDefaultValue(PropertyDefinition<?> propDef)
propDef
-
CmisRuntimeException
- if propDef
is invalid or unknown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |