package be.fgov.ehealth.dics.protocol.v3;

import be.fgov.ehealth.dics.core.v3.compounding.common.CompoundingFormulaKeyType;
import be.fgov.ehealth.dics.core.v3.compounding.common.SynonymType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
   name = "ConsultCompoundingFormulaType",
   propOrder = {"officialName", "synonyms"}
)
public class ConsultCompoundingFormulaType extends CompoundingFormulaKeyType implements Serializable {
   private static final long serialVersionUID = 1L;
   @XmlElement(
      name = "OfficialName",
      required = true
   )
   protected String officialName;
   @XmlElement(
      name = "Synonym"
   )
   protected List<SynonymType> synonyms;

   public String getOfficialName() {
      return this.officialName;
   }

   public void setOfficialName(String value) {
      this.officialName = value;
   }

   public List<SynonymType> getSynonyms() {
      if (this.synonyms == null) {
         this.synonyms = new ArrayList();
      }

      return this.synonyms;
   }
}
