com.tools20022.repository.msg.TaxPeriod1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools20022-api-payments Show documentation
Show all versions of tools20022-api-payments Show documentation
Java API for ISO 20022 - Payments business domain
/* Tools20022 - API for ISO 20022
* Copyright (C) 2017 Tools20022.com - László Bukodi
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.tools20022.repository.msg;
import com.tools20022.metamodel.MMMessageAttribute;
import com.tools20022.metamodel.MMMessageComponent;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.codeset.TaxRecordPeriod1Code;
import com.tools20022.repository.datatype.ISODate;
import com.tools20022.repository.entity.TaxPeriod;
import com.tools20022.repository.GeneratedRepository;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Period of time details related to the tax payment.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* - {@linkplain com.tools20022.repository.msg.TaxPeriod1#mmYear
* TaxPeriod1.mmYear}
* - {@linkplain com.tools20022.repository.msg.TaxPeriod1#mmType
* TaxPeriod1.mmType}
* - {@linkplain com.tools20022.repository.msg.TaxPeriod1#mmFromToDate
* TaxPeriod1.mmFromToDate}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} = {@linkplain com.tools20022.repository.entity.TaxPeriod TaxPeriod}
* -
* {@linkplain com.tools20022.metamodel.MMTopLevelDictionaryEntry#getDataDictionary
* dataDictionary} =
* {@linkplain com.tools20022.repository.GeneratedRepository#mmdataDict
* GeneratedRepository.mmdataDict}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName name} =
* "TaxPeriod1"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Period of time details related to the tax payment."
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "TaxPeriod1", propOrder = {"year", "type", "fromToDate"})
public class TaxPeriod1 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected ISODate year;
/**
* Year related to the tax payment.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.ISODate
* ISODate}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.TaxPeriod#mmYear
* TaxPeriod.mmYear}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} = {@linkplain com.tools20022.repository.msg.TaxPeriod1
* TaxPeriod1}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Yr"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Year"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Year related to the tax payment."
*
*/
public static final MMMessageAttribute mmYear = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> TaxPeriod.mmYear;
componentContext_lazy = () -> TaxPeriod1.mmObject();
isDerived = false;
xmlTag = "Yr";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Year";
definition = "Year related to the tax payment.";
maxOccurs = 1;
minOccurs = 0;
simpleType_lazy = () -> ISODate.mmObject();
}
};
protected TaxRecordPeriod1Code type;
/**
* Identification of the period related to the tax payment.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} =
* {@linkplain com.tools20022.repository.codeset.TaxRecordPeriod1Code
* TaxRecordPeriod1Code}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.TaxPeriod#mmType
* TaxPeriod.mmType}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} = {@linkplain com.tools20022.repository.msg.TaxPeriod1
* TaxPeriod1}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Tp"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Type"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Identification of the period related to the tax payment."
*
*/
public static final MMMessageAttribute mmType = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> TaxPeriod.mmType;
componentContext_lazy = () -> TaxPeriod1.mmObject();
isDerived = false;
xmlTag = "Tp";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Type";
definition = "Identification of the period related to the tax payment.";
maxOccurs = 1;
minOccurs = 0;
simpleType_lazy = () -> TaxRecordPeriod1Code.mmObject();
}
};
protected DatePeriodDetails fromToDate;
/**
* Range of time between a start date and an end date for which the tax
* report is provided.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getComplexType
* complexType} =
* {@linkplain com.tools20022.repository.msg.DatePeriodDetails
* DatePeriodDetails}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.TaxPeriod#mmFromToDate
* TaxPeriod.mmFromToDate}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} = {@linkplain com.tools20022.repository.msg.TaxPeriod1
* TaxPeriod1}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "FrToDt"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "FromToDate"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Range of time between a start date and an end date for which the tax report is provided."
*
*
*/
public static final MMMessageAttribute mmFromToDate = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> TaxPeriod.mmFromToDate;
componentContext_lazy = () -> TaxPeriod1.mmObject();
isDerived = false;
xmlTag = "FrToDt";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "FromToDate";
definition = "Range of time between a start date and an end date for which the tax report is provided.";
maxOccurs = 1;
minOccurs = 0;
complexType_lazy = () -> com.tools20022.repository.msg.DatePeriodDetails.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(TaxPeriod1.mmYear, TaxPeriod1.mmType, TaxPeriod1.mmFromToDate);
trace_lazy = () -> TaxPeriod.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "TaxPeriod1";
definition = "Period of time details related to the tax payment.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Yr")
public ISODate getYear() {
return year;
}
public void setYear(ISODate year) {
this.year = year;
}
@XmlElement(name = "Tp")
public TaxRecordPeriod1Code getType() {
return type;
}
public void setType(TaxRecordPeriod1Code type) {
this.type = type;
}
@XmlElement(name = "FrToDt")
public DatePeriodDetails getFromToDate() {
return fromToDate;
}
public void setFromToDate(com.tools20022.repository.msg.DatePeriodDetails fromToDate) {
this.fromToDate = fromToDate;
}
}