com.tools20022.repository.msg.Price2 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
The newest version!
/* 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.MMMessageAssociationEnd;
import com.tools20022.metamodel.MMMessageAttribute;
import com.tools20022.metamodel.MMMessageComponent;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.choice.PriceRateOrAmountChoice;
import com.tools20022.repository.choice.YieldedOrValueType1Choice;
import com.tools20022.repository.entity.SecuritiesPricing;
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;
/**
* Type and information about a price.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* - {@linkplain com.tools20022.repository.msg.Price2#mmType Price2.mmType}
* - {@linkplain com.tools20022.repository.msg.Price2#mmValue Price2.mmValue}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} = {@linkplain com.tools20022.repository.entity.SecuritiesPricing
* SecuritiesPricing}
* -
* {@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} =
* "Price2"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Type and information about a price."
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "Price2", propOrder = {"type", "value"})
public class Price2 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected YieldedOrValueType1Choice type;
/**
* Specification of the price type.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMMessageAssociationEnd#getType
* type} =
* {@linkplain com.tools20022.repository.choice.YieldedOrValueType1Choice
* YieldedOrValueType1Choice}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.SecuritiesPricing#mmPriceType
* SecuritiesPricing.mmPriceType}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} = {@linkplain com.tools20022.repository.msg.Price2
* Price2}
* - {@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} = "Specification of the price type."
*
*/
public static final MMMessageAssociationEnd mmType = new MMMessageAssociationEnd() {
{
businessElementTrace_lazy = () -> SecuritiesPricing.mmPriceType;
componentContext_lazy = () -> Price2.mmObject();
isDerived = false;
xmlTag = "Tp";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Type";
definition = "Specification of the price type.";
maxOccurs = 1;
minOccurs = 1;
isComposite = true;
type_lazy = () -> YieldedOrValueType1Choice.mmObject();
}
};
protected PriceRateOrAmountChoice value;
/**
* Value of the price, for example, as a currency and value.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getComplexType
* complexType} =
* {@linkplain com.tools20022.repository.choice.PriceRateOrAmountChoice
* PriceRateOrAmountChoice}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessComponentTrace
* businessComponentTrace} =
* {@linkplain com.tools20022.repository.entity.SecuritiesPricing
* SecuritiesPricing}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} = {@linkplain com.tools20022.repository.msg.Price2
* Price2}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Val"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Value"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Value of the price, for example, as a currency and value."
*
*
*/
public static final MMMessageAttribute mmValue = new MMMessageAttribute() {
{
businessComponentTrace_lazy = () -> SecuritiesPricing.mmObject();
componentContext_lazy = () -> Price2.mmObject();
isDerived = false;
xmlTag = "Val";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Value";
definition = "Value of the price, for example, as a currency and value.";
maxOccurs = 1;
minOccurs = 1;
complexType_lazy = () -> PriceRateOrAmountChoice.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(Price2.mmType, Price2.mmValue);
trace_lazy = () -> SecuritiesPricing.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "Price2";
definition = "Type and information about a price.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Tp", required = true)
public YieldedOrValueType1Choice getType() {
return type;
}
public void setType(YieldedOrValueType1Choice type) {
this.type = type;
}
@XmlElement(name = "Val", required = true)
public PriceRateOrAmountChoice getValue() {
return value;
}
public void setValue(PriceRateOrAmountChoice value) {
this.value = value;
}
}