001/* Copyright (C) 2014 konik.io 002 * 003 * This file is part of the Konik library. 004 * 005 * The Konik library is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * The Konik library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with the Konik library. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package io.konik.zugferd.entity; 020 021import io.konik.validator.annotation.NullableNotBlank; 022import io.konik.validator.annotation.ValidId; 023import io.konik.zugferd.unqualified.ID; 024 025import javax.xml.bind.annotation.XmlAccessType; 026import javax.xml.bind.annotation.XmlAccessorType; 027import javax.xml.bind.annotation.XmlElement; 028import javax.xml.bind.annotation.XmlType; 029import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 030import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 031 032/** 033 * = The Logistics Transport Movement. 034 * 035 */ 036@XmlAccessorType(XmlAccessType.FIELD) 037@XmlType(name = "LogisticsTransportMovementType", propOrder = { "modeCode", "shippingId" }) 038public class LogisticsTransportMovement { 039 040 @NullableNotBlank 041 @XmlElement(name = "ModeCode") 042 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 043 private String modeCode; 044 045 @ValidId 046 @XmlElement(name = "ID") 047 private ID shippingId; 048 049 /** 050 * Gets the shpping mode code. 051 * 052 * @return the mode code 053 */ 054 public String getModeCode() { 055 return modeCode; 056 } 057 058 /** 059 * Sets the shpping mode code. 060 * 061 * @param modeCode the mode code 062 * @return the logistics transport movement 063 */ 064 public LogisticsTransportMovement setModeCode(String modeCode) { 065 this.modeCode = modeCode; 066 return this; 067 } 068 069 /** 070 * Gets the shpping id. 071 * 072 * @return the id 073 */ 074 public ID getShppingId() { 075 return shippingId; 076 } 077 078 /** 079 * Sets the shpping id. 080 * 081 * @param shippingId the id 082 * @return the logistics transport movement 083 */ 084 public LogisticsTransportMovement setShppingId(ID shippingId) { 085 this.shippingId = shippingId; 086 return this; 087 } 088 089}