public final class FileShareUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanParameter(Boolean value,
boolean def)
Returns the boolean value of the given value or the default value if the
given value is
null . |
static GregorianCalendar |
getDateTimeProperty(Properties properties,
String name)
Returns the first value of a datetime property.
|
static String |
getIdProperty(Properties properties,
String name)
Returns the first value of an id property.
|
static String |
getObjectTypeId(Properties properties)
Gets the type id from a set of properties.
|
static String |
getStringProperty(Properties properties,
String name)
Returns the first value of a string property.
|
static GregorianCalendar |
millisToCalendar(long millis)
Converts milliseconds into a
GregorianCalendar object, setting
the timezone to GMT and cutting milliseconds off. |
static Set<String> |
splitFilter(String filter)
Splits a filter statement into a collection of properties.
|
public static boolean getBooleanParameter(Boolean value, boolean def)
null
.public static GregorianCalendar millisToCalendar(long millis)
GregorianCalendar
object, setting
the timezone to GMT and cutting milliseconds off.public static Set<String> splitFilter(String filter)
filter
is null
, empty or one of the properties
is '*' , an empty collection will be returned.public static String getObjectTypeId(Properties properties)
public static String getIdProperty(Properties properties, String name)
public static String getStringProperty(Properties properties, String name)
public static GregorianCalendar getDateTimeProperty(Properties properties, String name)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.