se.citerus.dddsample.interfaces.tracking
Class CargoTrackingViewAdapter.HandlingEventViewAdapter

java.lang.Object
  extended by se.citerus.dddsample.interfaces.tracking.CargoTrackingViewAdapter.HandlingEventViewAdapter
Enclosing class:
CargoTrackingViewAdapter

public final class CargoTrackingViewAdapter.HandlingEventViewAdapter
extends java.lang.Object

Handling event view adapter component.


Constructor Summary
CargoTrackingViewAdapter.HandlingEventViewAdapter(HandlingEvent handlingEvent)
          Constructor.
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getLocation()
           
 java.lang.String getTime()
           
 java.lang.String getType()
           
 java.lang.String getVoyageNumber()
           
 boolean isExpected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CargoTrackingViewAdapter.HandlingEventViewAdapter

public CargoTrackingViewAdapter.HandlingEventViewAdapter(HandlingEvent handlingEvent)
Constructor.

Parameters:
handlingEvent - handling event
Method Detail

getLocation

public java.lang.String getLocation()
Returns:
Location where the event occurred.

getTime

public java.lang.String getTime()
Returns:
Time when the event was completed.

getType

public java.lang.String getType()
Returns:
Type of event.

getVoyageNumber

public java.lang.String getVoyageNumber()
Returns:
Voyage number, or empty string if not applicable.

isExpected

public boolean isExpected()
Returns:
True if the event was expected, according to the cargo's itinerary.

getDescription

public java.lang.String getDescription()


Copyright © 2009. All Rights Reserved.