/* * 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 javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AccountType", propOrder = { "account", "subAccount", "bank" }) public class Account { @XmlElement(name = "Account", required = true) protected String account; @XmlElement(name = "SubAccount") protected String subAccount; @XmlElement(name = "Bank", required = true) protected Bank bank; @XmlAttribute(name = "kind") protected String kind; /** * Gets the value of the account property. * * @return * possible object is * {@link String } * */ public String getAccount() { return account; } /** * Sets the value of the account property. * * @param value * allowed object is * {@link String } * */ public void setAccount(String value) { this.account = value; } /** * Gets the value of the subAccount property. * * @return * possible object is * {@link String } * */ public String getSubAccount() { return subAccount; } /** * Sets the value of the subAccount property. * * @param value * allowed object is * {@link String } * */ public void setSubAccount(String value) { this.subAccount = value; } /** * Gets the value of the bank property. * * @return * possible object is * {@link Bank } * */ public Bank getBank() { return bank; } /** * Sets the value of the bank property. * * @param value * allowed object is * {@link Bank } * */ public void setBank(Bank value) { this.bank = value; } /** * Gets the value of the kind property. * * @return * possible object is * {@link String } * */ public String getKind() { if (kind == null) { return "1"; } else { return kind; } //return kind; } /** * Sets the value of the kind property. * * @param value * allowed object is * {@link String } * */ public void setKind(String value) { this.kind = value; } }