com.tools20022.repository.msg.OtherIdentification1 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.IdentificationSource3Choice;
import com.tools20022.repository.datatype.Max16Text;
import com.tools20022.repository.datatype.Max35Text;
import com.tools20022.repository.entity.GenericIdentification;
import com.tools20022.repository.entity.Scheme;
import com.tools20022.repository.entity.SecuritiesIdentification;
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;
/**
* Other accepted financial instrument's identification than ISIN.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* -
* {@linkplain com.tools20022.repository.msg.OtherIdentification1#mmIdentification
* OtherIdentification1.mmIdentification}
* - {@linkplain com.tools20022.repository.msg.OtherIdentification1#mmSuffix
* OtherIdentification1.mmSuffix}
* - {@linkplain com.tools20022.repository.msg.OtherIdentification1#mmType
* OtherIdentification1.mmType}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} =
* {@linkplain com.tools20022.repository.entity.SecuritiesIdentification
* SecuritiesIdentification}
* -
* {@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} =
* "OtherIdentification1"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Other accepted financial instrument's identification than ISIN."
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "OtherIdentification1", propOrder = {"identification", "suffix", "type"})
public class OtherIdentification1 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected Max35Text identification;
/**
* Identification of a security.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.Max35Text
* Max35Text}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.GenericIdentification#mmIdentification
* GenericIdentification.mmIdentification}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OtherIdentification1
* OtherIdentification1}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Id"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Identification"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Identification of a security."
*
*/
public static final MMMessageAttribute mmIdentification = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> GenericIdentification.mmIdentification;
componentContext_lazy = () -> OtherIdentification1.mmObject();
isDerived = false;
xmlTag = "Id";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Identification";
definition = "Identification of a security.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> Max35Text.mmObject();
}
};
protected Max16Text suffix;
/**
* Identifies the suffix of the security identification.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} = {@linkplain com.tools20022.repository.datatype.Max16Text
* Max16Text}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.SecuritiesIdentification#mmIdentificationSuffix
* SecuritiesIdentification.mmIdentificationSuffix}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OtherIdentification1
* OtherIdentification1}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Sfx"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Suffix"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Identifies the suffix of the security identification."
*
*/
public static final MMMessageAttribute mmSuffix = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> SecuritiesIdentification.mmIdentificationSuffix;
componentContext_lazy = () -> OtherIdentification1.mmObject();
isDerived = false;
xmlTag = "Sfx";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Suffix";
definition = "Identifies the suffix of the security identification.";
maxOccurs = 1;
minOccurs = 0;
simpleType_lazy = () -> Max16Text.mmObject();
}
};
protected IdentificationSource3Choice type;
/**
* Type of the identification.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMMessageAssociationEnd#getType
* type} =
* {@linkplain com.tools20022.repository.choice.IdentificationSource3Choice
* IdentificationSource3Choice}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.Scheme#mmIdentification
* Scheme.mmIdentification}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.OtherIdentification1
* OtherIdentification1}
* - {@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} = "Type of the identification."
*
*/
public static final MMMessageAssociationEnd mmType = new MMMessageAssociationEnd() {
{
businessElementTrace_lazy = () -> Scheme.mmIdentification;
componentContext_lazy = () -> OtherIdentification1.mmObject();
isDerived = false;
xmlTag = "Tp";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Type";
definition = "Type of the identification.";
maxOccurs = 1;
minOccurs = 1;
isComposite = true;
type_lazy = () -> IdentificationSource3Choice.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(OtherIdentification1.mmIdentification, OtherIdentification1.mmSuffix, OtherIdentification1.mmType);
trace_lazy = () -> SecuritiesIdentification.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "OtherIdentification1";
definition = "Other accepted financial instrument's identification than ISIN.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Id", required = true)
public Max35Text getIdentification() {
return identification;
}
public void setIdentification(Max35Text identification) {
this.identification = identification;
}
@XmlElement(name = "Sfx")
public Max16Text getSuffix() {
return suffix;
}
public void setSuffix(Max16Text suffix) {
this.suffix = suffix;
}
@XmlElement(name = "Tp", required = true)
public IdentificationSource3Choice getType() {
return type;
}
public void setType(IdentificationSource3Choice type) {
this.type = type;
}
}