public final class PropertyHelper extends Object
Properties
.Modifier and Type | Method and Description |
---|---|
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) |
public static String getStringProperty(Properties properties, String name)
properties
- name
- the name of the value to retrievename
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.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.