se.citerus.dddsample.interfaces.handling
Class HandlingReportParser
java.lang.Object
se.citerus.dddsample.interfaces.handling.HandlingReportParser
public class HandlingReportParser
- extends java.lang.Object
Utility methods for parsing various forms of handling report formats.
Supports the notification pattern for incremental error reporting.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISO_8601_FORMAT
public static final java.lang.String ISO_8601_FORMAT
- See Also:
- Constant Field Values
HandlingReportParser
public HandlingReportParser()
parseUnLocode
public static UnLocode parseUnLocode(java.lang.String unlocode,
java.util.List<java.lang.String> errors)
parseTrackingId
public static TrackingId parseTrackingId(java.lang.String trackingId,
java.util.List<java.lang.String> errors)
parseVoyageNumber
public static VoyageNumber parseVoyageNumber(java.lang.String voyageNumber,
java.util.List<java.lang.String> errors)
parseDate
public static java.util.Date parseDate(java.lang.String completionTime,
java.util.List<java.lang.String> errors)
parseEventType
public static HandlingEvent.Type parseEventType(java.lang.String eventType,
java.util.List<java.lang.String> errors)
parseCompletionTime
public static java.util.Date parseCompletionTime(HandlingReport handlingReport,
java.util.List<java.lang.String> errors)
Copyright © 2009. All Rights Reserved.