/** * Construct an newly DateOrDateTime object that represents the specified * XMLGregorianCalendar value * * @param dateOrDateTime * the value to be represented by the DateOrDateTime Object * @throws IllegalArgumentException if the given argument is not a valid DateOrDateTime */ public DateOrDateTime(XMLGregorianCalendar dateOrDateTime) throws IllegalArgumentException { if (DateOrDateTime.isValid(dateOrDateTime)) { mDateOrDateTime = dateOrDateTime; } else { throw new IllegalArgumentException( "parameter is invalid for datatype DateOrDateTime"); } }
/** * Returns a DateOrDateTime instance representing the specified String value * * @param stringValue * a String value * @return return a DateOrDateTime instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid DateOrDateTime */ public static DateOrDateTime valueOf(String stringValue) throws IllegalArgumentException { try { DatatypeFactory aFactory = new org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl(); return new DateOrDateTime(aFactory.newXMLGregorianCalendar(stringValue)); } catch (IllegalArgumentException ex) { Logger.getLogger(DateOrDateTime.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype DateOrDateTime", ex); throw new IllegalArgumentException( "parameter is invalid for datatype DateOrDateTime"); } }
/** * Returns a DateOrDateTime instance representing the specified String value * * @param stringValue * a String value * @return return a DateOrDateTime instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid DateOrDateTime */ public static DateOrDateTime valueOf(String stringValue) throws IllegalArgumentException { try { DatatypeFactory aFactory = new org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl(); return new DateOrDateTime(aFactory.newXMLGregorianCalendar(stringValue)); } catch (IllegalArgumentException ex) { Logger.getLogger(DateOrDateTime.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype DateOrDateTime", ex); throw new IllegalArgumentException( "parameter is invalid for datatype DateOrDateTime"); } }
/** * Construct an newly DateOrDateTime object that represents the specified * XMLGregorianCalendar value * * @param dateOrDateTime * the value to be represented by the DateOrDateTime Object * @throws IllegalArgumentException if the given argument is not a valid DateOrDateTime */ public DateOrDateTime(XMLGregorianCalendar dateOrDateTime) throws IllegalArgumentException { if (DateOrDateTime.isValid(dateOrDateTime)) { mDateOrDateTime = dateOrDateTime; } else { throw new IllegalArgumentException( "parameter is invalid for datatype DateOrDateTime"); } }
/** * Returns a DateOrDateTime instance representing the specified String value * * @param stringValue * a String value * @return return a DateOrDateTime instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid DateOrDateTime */ public static DateOrDateTime valueOf(String stringValue) throws IllegalArgumentException { try { DatatypeFactory aFactory = new org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl(); return new DateOrDateTime(aFactory.newXMLGregorianCalendar(stringValue)); } catch (IllegalArgumentException ex) { Logger.getLogger(DateOrDateTime.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype DateOrDateTime", ex); throw new IllegalArgumentException( "parameter is invalid for datatype DateOrDateTime"); } }
/** * Construct an newly DateOrDateTime object that represents the specified * XMLGregorianCalendar value * * @param dateOrDateTime * the value to be represented by the DateOrDateTime Object * @throws IllegalArgumentException if the given argument is not a valid DateOrDateTime */ public DateOrDateTime(XMLGregorianCalendar dateOrDateTime) throws IllegalArgumentException { if (DateOrDateTime.isValid(dateOrDateTime)) { mDateOrDateTime = dateOrDateTime; } else { throw new IllegalArgumentException( "parameter is invalid for datatype DateOrDateTime"); } }