se.citerus.dddsample.interfaces.handling
Class HandlingReportParser

java.lang.Object
  extended by 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.


Field Summary
static java.lang.String ISO_8601_FORMAT
           
 
Constructor Summary
HandlingReportParser()
           
 
Method Summary
static java.util.Date parseCompletionTime(HandlingReport handlingReport, java.util.List<java.lang.String> errors)
           
static java.util.Date parseDate(java.lang.String completionTime, java.util.List<java.lang.String> errors)
           
static HandlingEvent.Type parseEventType(java.lang.String eventType, java.util.List<java.lang.String> errors)
           
static TrackingId parseTrackingId(java.lang.String trackingId, java.util.List<java.lang.String> errors)
           
static UnLocode parseUnLocode(java.lang.String unlocode, java.util.List<java.lang.String> errors)
           
static VoyageNumber parseVoyageNumber(java.lang.String voyageNumber, java.util.List<java.lang.String> errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO_8601_FORMAT

public static final java.lang.String ISO_8601_FORMAT
See Also:
Constant Field Values
Constructor Detail

HandlingReportParser

public HandlingReportParser()
Method Detail

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.