public final class DurationAndDateUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertToXMLString(Object input) |
static boolean |
isDuration(String input) |
static boolean |
isPT0S(Duration duration) |
static boolean |
isXMLGregorianCalendar(String input) |
static Duration |
parseDuration(String input) |
static Object |
parseDurationOrTimestamp(String input) |
static XMLGregorianCalendar |
parseXMLGregorianCalendar(String input) |
static ExpirationType |
toExpirationTypeContainingDuration(XMLGregorianCalendar date) |
static ExpirationType |
toExpirationTypeContainingGregorianCalendar(XMLGregorianCalendar date) |
public static Duration parseDuration(String input) throws IllegalArgumentException
IllegalArgumentException
public static XMLGregorianCalendar parseXMLGregorianCalendar(String input) throws IllegalArgumentException
IllegalArgumentException
public static boolean isXMLGregorianCalendar(String input)
public static boolean isDuration(String input)
public static Object parseDurationOrTimestamp(String input) throws IllegalArgumentException
IllegalArgumentException
public static ExpirationType toExpirationTypeContainingGregorianCalendar(XMLGregorianCalendar date)
public static ExpirationType toExpirationTypeContainingDuration(XMLGregorianCalendar date)
public static boolean isPT0S(Duration duration)
Apache CXF