Apache CXF API

org.apache.cxf.ws.eventing.shared.utils
Class DurationAndDateUtil

java.lang.Object
  extended by org.apache.cxf.ws.eventing.shared.utils.DurationAndDateUtil

public final class DurationAndDateUtil
extends Object


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 API

Apache CXF