All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tools20022.repository.codeset.WaivingInstructionCode Maven / Gradle / Ivy

There is a newer version: 0.1.2
Show 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.codeset;

import com.tools20022.metamodel.MMCode;
import com.tools20022.metamodel.MMCodeSet;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.codeset.WaivingInstructionCode.InternalXmlAdapter;
import com.tools20022.repository.GeneratedRepository;
import java.lang.String;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;
import java.util.LinkedHashMap;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * Specifies the form of the rebate when commission is waived.
 * 

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCodeSet#getCode code} = *
      *
    • * {@linkplain com.tools20022.repository.codeset.WaivingInstructionCode#WaiveInCash * WaivingInstructionCode.mmWaiveInCash}
    • *
    • * {@linkplain com.tools20022.repository.codeset.WaivingInstructionCode#WaiveInUnits * WaivingInstructionCode.mmWaiveInUnits}
    • *
    • * {@linkplain com.tools20022.repository.codeset.WaivingInstructionCode#Other * WaivingInstructionCode.mmOther}
    • *
    *
  • *
  • * {@linkplain com.tools20022.metamodel.MMTopLevelDictionaryEntry#getDataDictionary * dataDictionary} = * {@linkplain com.tools20022.repository.GeneratedRepository#mmdataDict * GeneratedRepository.mmdataDict}
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getExample * example} = *
      *
    • "WICA"
    • *
    *
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName name} = * "WaivingInstructionCode"
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Specifies the form of the rebate when commission is waived."
  • *
*/ @XmlJavaTypeAdapter(InternalXmlAdapter.class) public class WaivingInstructionCode extends MMCode { final static private AtomicReference mmObject_lazy = new AtomicReference<>(); /** * Form of commission waived is cash. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.WaivingInstructionCode * WaivingInstructionCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "WICA"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "WaiveInCash"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Form of commission waived is cash."
  • *
*/ public static final WaivingInstructionCode WaiveInCash = new WaivingInstructionCode() { { registrationStatus = MMRegistrationStatus.REGISTERED; name = "WaiveInCash"; definition = "Form of commission waived is cash."; owner_lazy = () -> com.tools20022.repository.codeset.WaivingInstructionCode.mmObject(); codeName = "WICA"; } }; /** * Form of commission waived is additional units of a financial instrument. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.WaivingInstructionCode * WaivingInstructionCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "WIUN"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "WaiveInUnits"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = * "Form of commission waived is additional units of a financial instrument." *
  • *
*/ public static final WaivingInstructionCode WaiveInUnits = new WaivingInstructionCode() { { registrationStatus = MMRegistrationStatus.REGISTERED; name = "WaiveInUnits"; definition = "Form of commission waived is additional units of a financial instrument."; owner_lazy = () -> com.tools20022.repository.codeset.WaivingInstructionCode.mmObject(); codeName = "WIUN"; } }; /** * Another type of commission waiving. *

* Constant fields: *

    *
  • {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} = * {@linkplain com.tools20022.repository.codeset.WaivingInstructionCode * WaivingInstructionCode}
  • *
  • {@linkplain com.tools20022.metamodel.MMCode#getCodeName codeName} = * "OTHR"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus * registrationStatus} = * com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
  • *
  • {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName * name} = "Other"
  • *
  • * {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition * definition} = "Another type of commission waiving."
  • *
*/ public static final WaivingInstructionCode Other = new WaivingInstructionCode() { { registrationStatus = MMRegistrationStatus.REGISTERED; name = "Other"; definition = "Another type of commission waiving."; owner_lazy = () -> com.tools20022.repository.codeset.WaivingInstructionCode.mmObject(); codeName = "OTHR"; } }; final static private LinkedHashMap codesByName = new LinkedHashMap<>(); protected WaivingInstructionCode() { } final static public MMCodeSet mmObject() { mmObject_lazy.compareAndSet(null, new MMCodeSet() { { dataDictionary_lazy = () -> GeneratedRepository.mmdataDict; example = Arrays.asList("WICA"); registrationStatus = MMRegistrationStatus.REGISTERED; name = "WaivingInstructionCode"; definition = "Specifies the form of the rebate when commission is waived."; code_lazy = () -> Arrays.asList(com.tools20022.repository.codeset.WaivingInstructionCode.WaiveInCash, com.tools20022.repository.codeset.WaivingInstructionCode.WaiveInUnits, com.tools20022.repository.codeset.WaivingInstructionCode.Other); } }); return mmObject_lazy.get(); } static { codesByName.put(WaiveInCash.getCodeName().get(), WaiveInCash); codesByName.put(WaiveInUnits.getCodeName().get(), WaiveInUnits); codesByName.put(Other.getCodeName().get(), Other); } public static WaivingInstructionCode valueOf(String codeName) { return codesByName.get(codeName); } public static WaivingInstructionCode[] values() { WaivingInstructionCode[] values = new WaivingInstructionCode[codesByName.size()]; return codesByName.values().toArray(values); } protected static class InternalXmlAdapter extends XmlAdapter { @Override public WaivingInstructionCode unmarshal(String codeName) { return valueOf(codeName); } @Override public String marshal(WaivingInstructionCode codeObj) { return codeObj.getCodeName().orElse(null); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy