public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static XMLGregorianCalendar |
convertDateTo(Date date)
Converts a
Date into an XMLGregorianCalendar date. |
static int |
valueOfProp(String propName,
Map<String,String> props,
int defaultValue)
Returns the integer value of a named property that is part of a collection of properties.
|
public static XMLGregorianCalendar convertDateTo(Date date) throws DatatypeConfigurationException
Date
into an XMLGregorianCalendar
date.date
- a date instancexml:dateTime
DatatypeConfigurationException
- if there is an exception while converting the datepublic static int valueOfProp(String propName, Map<String,String> props, int defaultValue)
propName
- name of a property in the propertiesprops
- propertiesdefaultValue
- default value, to be returned if the named property is not foundCopyright © Jitterbit, Inc. Licensed under the Jitterbit Master Subscription Agreement.