/** * Convert from a Date to a String representation of the YearMonthDay type. * * @param date the date * @return a Date to a String representation of the YearMonthDay type. */ public String toYearMonthDay(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.DATE_QNAME); }
/** * Convert from a Date to a String representation of the Day type. * * @param date the date * @return a Date to a String representation of the Day type. */ public String toDay(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.G_DAY_QNAME); }
/** * Convert from a Date to a String representation of the YearMonthDay type. * * @param date the date * @return a Date to a String representation of the YearMonthDay type. */ public String toYearMonthDay(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.DATE_QNAME); }
private String stringFromSQLTime(Time sourceTime, QName schemaType) { if(null == schemaType) { return stringFromSQLTime(sourceTime); } else { return stringFromDate(sourceTime, schemaType); } }
/** * Convert from a Date to a String representation of the Year type. * * @param date the date * @return a Date to a String representation of the Year type. */ public String toYear(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.G_YEAR_QNAME); }
/** * Convert from a Date to a String representation of the Time type. * * @param date the date * @return a Date to a String representation of the Time type. */ public String toTime(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.TIME_QNAME); }
/** * Convert from a Date to a String representation of the YearMonth type. * * @param date the date * @return a Date to a String representation of the YearMonth type. */ public String toYearMonth(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.G_YEAR_MONTH_QNAME); }
private String stringFromSQLTime(Time sourceTime, QName schemaType) { if(null == schemaType) { return stringFromSQLTime(sourceTime); } else { return stringFromDate(sourceTime, schemaType); } }
/** * Convert from a Date to a String representation of the YearMonth type. * * @param date the date * @return a Date to a String representation of the YearMonth type. */ public String toYearMonth(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.G_YEAR_MONTH_QNAME); }
private String stringFromSQLDate(java.sql.Date sourceDate, QName schemaType) { if(null == schemaType) { return stringFromSQLDate(sourceDate); } else { return stringFromDate(sourceDate, schemaType); } }
/** * Convert from a Date to a String representation of the DateTime type. * * @param date the date * @return a Date to a String representation of the DateTime type. */ public String toDateTime(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.DATE_TIME_QNAME); }
private String stringFromSQLDate(java.sql.Date sourceDate, QName schemaType) { if(null == schemaType) { return stringFromSQLDate(sourceDate); } else { return stringFromDate(sourceDate, schemaType); } }
/** * Convert from a Date to a String representation of the Day type. * * @param date the date * @return a Date to a String representation of the Day type. */ public String toDay(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.G_DAY_QNAME); }
/** * Convert from a Date to a String representation of the DateTime type. * * @param date the date * @return a Date to a String representation of the DateTime type. */ public String toDateTime(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.DATE_TIME_QNAME); }
/** * Convert from a Date to a String representation of the Time type. * * @param date the date * @return a Date to a String representation of the Time type. */ public String toTime(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.TIME_QNAME); }
/** * Convert from a Date to a String representation of the Year type. * * @param date the date * @return a Date to a String representation of the Year type. */ public String toYear(Date date) { if (date == null) { return null; } return getXMLConversionManager().stringFromDate(date, XMLConstants.G_YEAR_QNAME); }
private String stringFromCalendar(Calendar sourceCalendar) { if (!(sourceCalendar.isSet(Calendar.HOUR) || sourceCalendar.isSet(Calendar.MINUTE) || sourceCalendar.isSet(Calendar.SECOND) || sourceCalendar.isSet(Calendar.MILLISECOND))) { return stringFromCalendar(sourceCalendar, XMLConstants.DATE_QNAME); } else if (!(sourceCalendar.isSet(Calendar.YEAR) || sourceCalendar.isSet(Calendar.MONTH) || sourceCalendar.isSet(Calendar.DATE))) { return stringFromCalendar(sourceCalendar, XMLConstants.TIME_QNAME); } else { return stringFromDate(sourceCalendar.getTime()); } }
return stringFromDate((java.util.Date) sourceObject, schemaTypeQName);
/** * Convert from a Date to a String representation of the Month type. * * @param date the date * @return a Date to a String representation of the Month type. */ public String toMonth(Date date) { if (date == null) { return null; } // Temporarily turn off TZ qualification boolean wasTimezoneQualified = getXMLConversionManager().isTimeZoneQualified(); getXMLConversionManager().setTimeZoneQualified(false); String s = getXMLConversionManager().stringFromDate(date, XMLConstants.G_MONTH_QNAME); getXMLConversionManager().setTimeZoneQualified(wasTimezoneQualified); return s; }
/** * Convert from a Date to a String representation of the Month type. * * @param date the date * @return a Date to a String representation of the Month type. */ public String toMonth(Date date) { if (date == null) { return null; } // Temporarily turn off TZ qualification boolean wasTimezoneQualified = getXMLConversionManager().isTimeZoneQualified(); getXMLConversionManager().setTimeZoneQualified(false); String s = getXMLConversionManager().stringFromDate(date, XMLConstants.G_MONTH_QNAME); getXMLConversionManager().setTimeZoneQualified(wasTimezoneQualified); return s; }