/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype timeOrDateTime} data type * * @param timeOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype timeOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar timeOrDateTime) { return (Time.isValid(timeOrDateTime) || DateTime.isValid(timeOrDateTime)); } }
/** * Returns a DateTime instance representing the specified String value * * @param stringValue * a String value * @return return a DateTime instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid DateTime */ public static DateTime valueOf(String stringValue) throws IllegalArgumentException { try { DatatypeFactory aFactory = new org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl(); return new DateTime(aFactory.newXMLGregorianCalendar(stringValue)); } catch (IllegalArgumentException ex) { Logger.getLogger(DateTime.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype DateTime", ex); throw new IllegalArgumentException( "parameter is invalid for datatype DateTime"); } }
/** * Returns a DateTime instance representing the specified String value * * @param stringValue * a String value * @return return a DateTime instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid DateTime */ public static DateTime valueOf(String stringValue) throws IllegalArgumentException { try { DatatypeFactory aFactory = new org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl(); return new DateTime(aFactory.newXMLGregorianCalendar(stringValue)); } catch (IllegalArgumentException ex) { Logger.getLogger(DateTime.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype DateTime", ex); throw new IllegalArgumentException( "parameter is invalid for datatype DateTime"); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype timeOrDateTime} data type * * @param timeOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype timeOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar timeOrDateTime) { return (Time.isValid(timeOrDateTime) || DateTime.isValid(timeOrDateTime)); } }
/** * Returns a DateTime instance representing the specified String value * * @param stringValue * a String value * @return return a DateTime instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid DateTime */ public static DateTime valueOf(String stringValue) throws IllegalArgumentException { try { DatatypeFactory aFactory = new org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl(); return new DateTime(aFactory.newXMLGregorianCalendar(stringValue)); } catch (IllegalArgumentException ex) { Logger.getLogger(DateTime.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype DateTime", ex); throw new IllegalArgumentException( "parameter is invalid for datatype DateTime"); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype timeOrDateTime} data type * * @param timeOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype timeOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar timeOrDateTime) { return (Time.isValid(timeOrDateTime) || DateTime.isValid(timeOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype dateOrDateTime} data type * * @param dateOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype dateOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar dateOrDateTime) { return (Date.isValid(dateOrDateTime) || DateTime.isValid(dateOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype dateOrDateTime} data type * * @param dateOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype dateOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar dateOrDateTime) { return (Date.isValid(dateOrDateTime) || DateTime.isValid(dateOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype dateOrDateTime} data type * * @param dateOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype dateOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar dateOrDateTime) { return (Date.isValid(dateOrDateTime) || DateTime.isValid(dateOrDateTime)); } }