1 package org.fosstrak.epcis.model; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 import javax.xml.bind.annotation.XmlAccessType; 6 import javax.xml.bind.annotation.XmlAccessorType; 7 import javax.xml.bind.annotation.XmlElement; 8 import javax.xml.bind.annotation.XmlType; 9 10 /** 11 * <p> 12 * Java class for StandardBusinessDocumentHeader complex type. 13 * <p> 14 * The following schema fragment specifies the expected content contained within 15 * this class. 16 * 17 * <pre> 18 * <complexType name="StandardBusinessDocumentHeader"> 19 * <complexContent> 20 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 21 * <sequence> 22 * <element name="HeaderVersion" type="{http://www.w3.org/2001/XMLSchema}string"/> 23 * <element name="Sender" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}Partner" maxOccurs="unbounded"/> 24 * <element name="Receiver" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}Partner" maxOccurs="unbounded"/> 25 * <element name="DocumentIdentification" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}DocumentIdentification"/> 26 * <element name="Manifest" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}Manifest" minOccurs="0"/> 27 * <element name="BusinessScope" type="{http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader}BusinessScope" minOccurs="0"/> 28 * </sequence> 29 * </restriction> 30 * </complexContent> 31 * </complexType> 32 * </pre> 33 */ 34 @XmlAccessorType(XmlAccessType.FIELD) 35 @XmlType(name = "StandardBusinessDocumentHeader", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", propOrder = { 36 "headerVersion", "sender", "receiver", "documentIdentification", "manifest", "businessScope" }) 37 public class StandardBusinessDocumentHeader { 38 39 @XmlElement(name = "HeaderVersion", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true) 40 protected String headerVersion; 41 @XmlElement(name = "Sender", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true) 42 protected List<Partner> sender; 43 @XmlElement(name = "Receiver", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true) 44 protected List<Partner> receiver; 45 @XmlElement(name = "DocumentIdentification", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", required = true) 46 protected DocumentIdentification documentIdentification; 47 @XmlElement(name = "Manifest", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader") 48 protected Manifest manifest; 49 @XmlElement(name = "BusinessScope", namespace = "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader") 50 protected BusinessScope businessScope; 51 52 /** 53 * Gets the value of the headerVersion property. 54 * 55 * @return possible object is {@link String } 56 */ 57 public String getHeaderVersion() { 58 return headerVersion; 59 } 60 61 /** 62 * Sets the value of the headerVersion property. 63 * 64 * @param value 65 * allowed object is {@link String } 66 */ 67 public void setHeaderVersion(String value) { 68 this.headerVersion = value; 69 } 70 71 /** 72 * Gets the value of the sender property. 73 * <p> 74 * This accessor method returns a reference to the live list, not a 75 * snapshot. Therefore any modification you make to the returned list will 76 * be present inside the JAXB object. This is why there is not a 77 * <CODE>set</CODE> method for the sender property. 78 * <p> 79 * For example, to add a new item, do as follows: 80 * 81 * <pre> 82 * getSender().add(newItem); 83 * </pre> 84 * <p> 85 * Objects of the following type(s) are allowed in the list {@link Partner } 86 */ 87 public List<Partner> getSender() { 88 if (sender == null) { 89 sender = new ArrayList<Partner>(); 90 } 91 return this.sender; 92 } 93 94 /** 95 * Gets the value of the receiver property. 96 * <p> 97 * This accessor method returns a reference to the live list, not a 98 * snapshot. Therefore any modification you make to the returned list will 99 * be present inside the JAXB object. This is why there is not a 100 * <CODE>set</CODE> method for the receiver property. 101 * <p> 102 * For example, to add a new item, do as follows: 103 * 104 * <pre> 105 * getReceiver().add(newItem); 106 * </pre> 107 * <p> 108 * Objects of the following type(s) are allowed in the list {@link Partner } 109 */ 110 public List<Partner> getReceiver() { 111 if (receiver == null) { 112 receiver = new ArrayList<Partner>(); 113 } 114 return this.receiver; 115 } 116 117 /** 118 * Gets the value of the documentIdentification property. 119 * 120 * @return possible object is {@link DocumentIdentification } 121 */ 122 public DocumentIdentification getDocumentIdentification() { 123 return documentIdentification; 124 } 125 126 /** 127 * Sets the value of the documentIdentification property. 128 * 129 * @param value 130 * allowed object is {@link DocumentIdentification } 131 */ 132 public void setDocumentIdentification(DocumentIdentification value) { 133 this.documentIdentification = value; 134 } 135 136 /** 137 * Gets the value of the manifest property. 138 * 139 * @return possible object is {@link Manifest } 140 */ 141 public Manifest getManifest() { 142 return manifest; 143 } 144 145 /** 146 * Sets the value of the manifest property. 147 * 148 * @param value 149 * allowed object is {@link Manifest } 150 */ 151 public void setManifest(Manifest value) { 152 this.manifest = value; 153 } 154 155 /** 156 * Gets the value of the businessScope property. 157 * 158 * @return possible object is {@link BusinessScope } 159 */ 160 public BusinessScope getBusinessScope() { 161 return businessScope; 162 } 163 164 /** 165 * Sets the value of the businessScope property. 166 * 167 * @param value 168 * allowed object is {@link BusinessScope } 169 */ 170 public void setBusinessScope(BusinessScope value) { 171 this.businessScope = value; 172 } 173 174 }