/** * 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"); } }
/** * 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"); } }
/** * 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"); } }