/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * Copyright (c) 2013, MPL CodeInside http://codeinside.ru */ package ru.roskazna.xsd.organization; 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.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import ru.roskazna.xsd.common.AddressType; import ru.roskazna.xsd.common.ContactInfoType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OrganizationType", propOrder = { "name", "inn", "kpp", "ogrn", "account", "addresses", "contacts" }) @XmlSeeAlso({ KFO.class }) public class Organization { @XmlElement(name = "Name", required = true) protected String name; @XmlElement(name = "INN", required = true) protected String inn; @XmlElement(name = "KPP", required = true) protected String kpp; @XmlElement(name = "OGRN") protected String ogrn; @XmlElement(name = "Account", required = true) protected Account account; @XmlElement(name = "Addresses") protected Organization.Addresses addresses; @XmlElement(name = "Contacts") protected Organization.Contacts contacts; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the inn property. * * @return * possible object is * {@link String } * */ public String getINN() { return inn; } /** * Sets the value of the inn property. * * @param value * allowed object is * {@link String } * */ public void setINN(String value) { this.inn = value; } /** * Gets the value of the kpp property. * * @return * possible object is * {@link String } * */ public String getKPP() { return kpp; } /** * Sets the value of the kpp property. * * @param value * allowed object is * {@link String } * */ public void setKPP(String value) { this.kpp = value; } /** * Gets the value of the ogrn property. * * @return * possible object is * {@link String } * */ public String getOGRN() { return ogrn; } /** * Sets the value of the ogrn property. * * @param value * allowed object is * {@link String } * */ public void setOGRN(String value) { this.ogrn = value; } /** * Gets the value of the account property. * * @return * possible object is * {@link Account } * */ public Account getAccount() { return account; } /** * Sets the value of the account property. * * @param value * allowed object is * {@link Account } * */ public void setAccount(Account value) { this.account = value; } /** * Gets the value of the addresses property. * * @return * possible object is * {@link Organization.Addresses } * */ public Organization.Addresses getAddresses() { return addresses; } /** * Sets the value of the addresses property. * * @param value * allowed object is * {@link Organization.Addresses } * */ public void setAddresses(Organization.Addresses value) { this.addresses = value; } /** * Gets the value of the contacts property. * * @return * possible object is * {@link Organization.Contacts } * */ public Organization.Contacts getContacts() { return contacts; } /** * Sets the value of the contacts property. * * @param value * allowed object is * {@link Organization.Contacts } * */ public void setContacts(Organization.Contacts value) { this.contacts = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Address" type="{http://roskazna.ru/xsd/Common}AddressType" maxOccurs="unbounded"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "address" }) public static class Addresses { @XmlElement(name = "Address", required = true) protected List<AddressType> address; /** * Gets the value of the address property. * * <p> * 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 <CODE>set</CODE> method for the address property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAddress().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AddressType } * * */ public List<AddressType> getAddress() { if (address == null) { address = new ArrayList<AddressType>(); } return this.address; } } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Contact" type="{http://roskazna.ru/xsd/Common}ContactInfoType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "contact" }) public static class Contacts { @XmlElement(name = "Contact") protected List<ContactInfoType> contact; /** * Gets the value of the contact property. * * <p> * 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 <CODE>set</CODE> method for the contact property. * * <p> * For example, to add a new item, do as follows: * <pre> * getContact().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ContactInfoType } * * */ public List<ContactInfoType> getContact() { if (contact == null) { contact = new ArrayList<ContactInfoType>(); } return this.contact; } } }