com.tools20022.repository.msg.FrequencyAndMoment1 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.Frequency6Code;
import com.tools20022.repository.datatype.Exact2NumericText;
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;
/**
* Defines a frequency in terms a specific moment within a specified period
* type.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* - {@linkplain com.tools20022.repository.msg.FrequencyAndMoment1#mmType
* FrequencyAndMoment1.mmType}
* -
* {@linkplain com.tools20022.repository.msg.FrequencyAndMoment1#mmPointInTime
* FrequencyAndMoment1.mmPointInTime}
*
*
* -
* {@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} =
* "FrequencyAndMoment1"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Defines a frequency in terms a specific moment within a specified period type."
*
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "FrequencyAndMoment1", propOrder = {"type", "pointInTime"})
public class FrequencyAndMoment1 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected Frequency6Code type;
/**
* Period for which the number of instructions are to be created and
* processed.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} =
* {@linkplain com.tools20022.repository.codeset.Frequency6Code
* Frequency6Code}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.FrequencyAndMoment1
* FrequencyAndMoment1}
* - {@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} =
* "Period for which the number of instructions are to be created and processed."
*
*
*/
public static final MMMessageAttribute mmType = new MMMessageAttribute() {
{
componentContext_lazy = () -> FrequencyAndMoment1.mmObject();
isDerived = false;
xmlTag = "Tp";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Type";
definition = "Period for which the number of instructions are to be created and processed.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> Frequency6Code.mmObject();
}
};
protected Exact2NumericText pointInTime;
/**
* Further information on the exact point in time the event should take
* place.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} =
* {@linkplain com.tools20022.repository.datatype.Exact2NumericText
* Exact2NumericText}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.FrequencyAndMoment1
* FrequencyAndMoment1}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "PtInTm"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "PointInTime"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Further information on the exact point in time the event should take place."
*
*
*/
public static final MMMessageAttribute mmPointInTime = new MMMessageAttribute() {
{
componentContext_lazy = () -> FrequencyAndMoment1.mmObject();
isDerived = false;
xmlTag = "PtInTm";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "PointInTime";
definition = "Further information on the exact point in time the event should take place.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> Exact2NumericText.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(FrequencyAndMoment1.mmType, FrequencyAndMoment1.mmPointInTime);
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "FrequencyAndMoment1";
definition = "Defines a frequency in terms a specific moment within a specified period type.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Tp", required = true)
public Frequency6Code getType() {
return type;
}
public void setType(Frequency6Code type) {
this.type = type;
}
@XmlElement(name = "PtInTm", required = true)
public Exact2NumericText getPointInTime() {
return pointInTime;
}
public void setPointInTime(Exact2NumericText pointInTime) {
this.pointInTime = pointInTime;
}
}