org.apache.cxf.ws.eventing.shared.utils
Class DurationAndDateUtil
java.lang.Object
org.apache.cxf.ws.eventing.shared.utils.DurationAndDateUtil
public final class DurationAndDateUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseDuration
public static Duration parseDuration(String input)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
parseXMLGregorianCalendar
public static XMLGregorianCalendar parseXMLGregorianCalendar(String input)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
isXMLGregorianCalendar
public static boolean isXMLGregorianCalendar(String input)
isDuration
public static boolean isDuration(String input)
parseDurationOrTimestamp
public static Object parseDurationOrTimestamp(String input)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
convertToXMLString
public static String convertToXMLString(Object input)
toExpirationTypeContainingGregorianCalendar
public static ExpirationType toExpirationTypeContainingGregorianCalendar(XMLGregorianCalendar date)
toExpirationTypeContainingDuration
public static ExpirationType toExpirationTypeContainingDuration(XMLGregorianCalendar date)
isPT0S
public static boolean isPT0S(Duration duration)
Apache CXF