/** * Format date to ISO 8601 formatted string * * @param date Date * @return String */ public String toISO8601(Date date) { return ISO8601DateFormat.format(date); }
/** * Format date to ISO 8601 formatted string * * @param date Date * @return String */ public String toISO8601(Date date) { return ISO8601DateFormat.format(date); }
/** * Format timeInMillis to ISO 8601 formatted string * * @param timeInMillis long * @return String */ public String toISO8601(long timeInMillis) { return ISO8601DateFormat.format(new Date(timeInMillis)); }
@Override public String toString() { StringBuilder sb = new StringBuilder(512); sb.append("PropertyDateValueEntity") .append("[ value=").append(dateValue) .append(" (").append(ISO8601DateFormat.format(new Date(dateValue))).append(")") .append("]"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder(512); sb.append("PropertyDateValueEntity") .append("[ value=").append(dateValue) .append(" (").append(ISO8601DateFormat.format(new Date(dateValue))).append(")") .append("]"); return sb.toString(); }
private void writeDate(Date date) throws SAXException { String dates = ISO8601DateFormat.format(date); writer.characters(dates.toCharArray(), 0, dates.length()); }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventSendingSnapshot s = (TransferEventSendingSnapshot)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventCancelled s = (TransferEventCancelled)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventSentContent s = (TransferEventSentContent)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventSendingSnapshot s = (TransferEventSendingSnapshot)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventSuccess s = (TransferEventSuccess)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventError s = (TransferEventError)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventBegin s = (TransferEventBegin)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "transferId", "transferId", "string", s.getTransferId()); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventCommittingStatus s = (TransferEventCommittingStatus)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "position", "position", "string", String.valueOf(s.getPosition())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "range", "range", "string", String.valueOf(s.getRange())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventSendingContent s = (TransferEventSendingContent)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "position", "position", "string", String.valueOf(s.getPosition())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "range", "range", "string", String.valueOf(s.getRange())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "size", "size", "string", String.valueOf(s.getSize())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventSendingContent s = (TransferEventSendingContent)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "position", "position", "string", String.valueOf(s.getPosition())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "range", "range", "string", String.valueOf(s.getRange())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "size", "size", "string", String.valueOf(s.getSize())); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventEndState s = (TransferEventEndState)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "state", "state", "string", s.getTransferState().toString()); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventEnterState s = (TransferEventEnterState)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "state", "state", "string", s.getTransferState().toString()); return attributes; }
@Override public AttributesImpl getAttributes(TransferEvent event) { TransferEventReport s = (TransferEventReport)event; AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "date", "date", "dateTime", ISO8601DateFormat.format(event.getTime())); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "nodeRef", "nodeRef", "string", s.getNodeRef().toString()); attributes.addAttribute(TransferReportModel.TRANSFER_REPORT_MODEL_1_0_URI, "reportType", "reportType", "string", s.getReportType().toString()); return attributes; }