All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.konik.zugferd.entity.CommonAgreement Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
/* Copyright (C) 2014 konik.io
 *
 * This file is part of the Konik library.
 *
 * The Konik library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * The Konik library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with the Konik library. If not, see .
 */
package io.konik.zugferd.entity;

import io.konik.zugferd.entity.trade.Agreement;
import io.konik.zugferd.entity.trade.item.SpecifiedAgreement;

import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.List;

/**
 * = The Agreement
 * 
 * This base agreement class contain only fields. {@link Agreement} and {@link SpecifiedAgreement} provide a different
 * view
 * on the underlying Data,
 * we have this common field structure class because otherwise we would have two +SupplyChainTradeAgreementType+s and
 * this is not allowed in JaxB
 * 
 * @param  the different Referenced Document
 * @param  additional Referenced Document
 */
@XmlTransient
@XmlType(name = "SupplyChainTradeAgreementType")
public interface CommonAgreement extends Serializable {
   /**
    * Gets the buyer order referenced document.
    *
    * @return the buyer order referenced document
    */
   R getBuyerOrder();

   /**
    * Sets the buyer order referenced document.
    *
    * @param buyerOrder the new buyer order referenced document
    * @return the supply chain trade agreement
    */
   CommonAgreement setBuyerOrder(R buyerOrder);

   /**
    * Gets the contract referenced document.
    * 
    *
    * @return the contract referenced document
    */
   R getContract();

   /**
    * Sets the contract referenced document.
    * 
    *
    * @param contract the new contract referenced document
    * @return the supply chain trade agreement
    */
   CommonAgreement setContract(R contract);

   /**
    * Gets the additional referenced document
    *
    * @return the additional
    */
   List getAdditional();

   /**
    * Sets the additional referenced document.
    *
    * @param additionalReference the additional reference
    * @return the common agreement
    */
   CommonAgreement addAdditional(A additionalReference);

   /**
    * Gets the customer order referenced document.
    * 
    *
    * @return the customer order referenced document
    */
   R getCustomerOrder();

   /**
    * Sets the customer order referenced document.
    * 
    *
    * @param customerOrder the new customer order referenced document
    * @return the supply chain trade agreement
    */
   CommonAgreement setCustomerOrder(R customerOrder);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy