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

ru.asubezdna.edata.v1_10.Header Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.11.09 at 01:38:12 PM MSK 
//


package ru.asubezdna.edata.v1_10;

import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;

import org.w3c.dom.Element;

/**
 * 

Java class for Header complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Header">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Format" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="CreationDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         <element name="Confirmation" type="{http://www.1c.ru/SSL/Exchange/Message}Confirmation" minOccurs="0"/>
 *         <element name="AvailableVersion" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="100"/>
 *         <element name="NewFrom" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="AvailableObjectTypes" type="{http://www.1c.ru/SSL/Exchange/Message}AvailableObjectTypes" minOccurs="0"/>
 *         <element name="Prefix" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="AvailableExtensions" type="{http://www.1c.ru/SSL/Exchange/Message}AvailableExtensions" minOccurs="0"/>
 *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <anyAttribute processContents='lax'/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Header", namespace = "http://www.1c.ru/SSL/Exchange/Message", propOrder = { "format", "creationDate", "confirmation", "availableVersion", "newFrom", "availableObjectTypes", "prefix", "availableExtensions", "any" }) public class Header { @XmlElement(name = "Format", required = true) protected String format; @XmlElement(name = "CreationDate", required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar creationDate; @XmlElement(name = "Confirmation") protected Confirmation confirmation; @XmlElement(name = "AvailableVersion", required = true) protected List availableVersion; @XmlElement(name = "NewFrom") protected String newFrom; @XmlElementRef(name = "AvailableObjectTypes", namespace = "http://www.1c.ru/SSL/Exchange/Message", type = JAXBElement.class, required = false) protected JAXBElement availableObjectTypes; @XmlElement(name = "Prefix") protected String prefix; @XmlElement(name = "AvailableExtensions") protected AvailableExtensions availableExtensions; @XmlAnyElement(lax = true) protected List any; @XmlAnyAttribute private Map otherAttributes = new HashMap<>(); public Header() { setFormat("http://v8.1c.ru/edi/edi_stnd/EnterpriseData/1.10"); try { setCreationDate(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar())); } catch (DatatypeConfigurationException ignored) { // } getAvailableVersion().add("1.10"); } /** * Gets the value of the format property. * * @return * possible object is * {@link String } * */ public String getFormat() { return format; } /** * Sets the value of the format property. * * @param value * allowed object is * {@link String } * */ public void setFormat(String value) { this.format = value; } /** * Gets the value of the creationDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getCreationDate() { return creationDate; } /** * Sets the value of the creationDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setCreationDate(XMLGregorianCalendar value) { this.creationDate = value; } public void setCreationDate(Date value) throws DatatypeConfigurationException { this.creationDate = null; if (value != null) { GregorianCalendar c = new GregorianCalendar(); c.setTime(value); this.creationDate = DatatypeFactory.newInstance().newXMLGregorianCalendar(c); } } /** * Gets the value of the confirmation property. * * @return * possible object is * {@link Confirmation } * */ public Confirmation getConfirmation() { return confirmation; } /** * Sets the value of the confirmation property. * * @param value * allowed object is * {@link Confirmation } * */ public void setConfirmation(Confirmation value) { this.confirmation = value; } /** * Gets the value of the availableVersion property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the availableVersion property. * *

* For example, to add a new item, do as follows: *

     *    getAvailableVersion().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getAvailableVersion() { if (availableVersion == null) availableVersion = new ArrayList<>(); return this.availableVersion; } /** * Gets the value of the newFrom property. * * @return * possible object is * {@link String } * */ public String getNewFrom() { return newFrom; } /** * Sets the value of the newFrom property. * * @param value * allowed object is * {@link String } * */ public void setNewFrom(String value) { this.newFrom = value; } /** * Gets the value of the availableObjectTypes property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link AvailableObjectTypes }{@code >} * */ public JAXBElement getAvailableObjectTypes() { return availableObjectTypes; } /** * Sets the value of the availableObjectTypes property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link AvailableObjectTypes }{@code >} * */ public void setAvailableObjectTypes(JAXBElement value) { this.availableObjectTypes = value; } /** * Gets the value of the prefix property. * * @return * possible object is * {@link String } * */ public String getPrefix() { return prefix; } /** * Sets the value of the prefix property. * * @param value * allowed object is * {@link String } * */ public void setPrefix(String value) { this.prefix = value; } /** * Gets the value of the availableExtensions property. * * @return * possible object is * {@link AvailableExtensions } * */ public AvailableExtensions getAvailableExtensions() { return availableExtensions; } /** * Sets the value of the availableExtensions property. * * @param value * allowed object is * {@link AvailableExtensions } * */ public void setAvailableExtensions(AvailableExtensions value) { this.availableExtensions = value; } /** * Gets the value of the any property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the any property. * *

* For example, to add a new item, do as follows: *

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Element } * {@link java.lang.Object } * * */ public List getAny() { if (any == null) { any = new ArrayList<>(); } return this.any; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * *

* the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map getOtherAttributes() { return otherAttributes; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy