public void attachItinerary ( final Itinerary itinerary ) { Validate . notNull ( itinerary ) ; // Decouple the old itinerary from this cargo itinerary ( ) . setCargo ( null ) ; // Couple this cargo and the new itinerary setItinerary ( itinerary ) ; itinerary ( ) . setCargo ( this ) ; }
Attach a new itinerary to this cargo .