com.tools20022.repository.codeset.Frequency7Code 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.codeset;
import com.tools20022.metamodel.MMCode;
import com.tools20022.metamodel.MMCodeSet;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.codeset.Frequency7Code.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 regularity of an event.
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCodeSet#getCode code} =
*
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#Annual
* Frequency7Code.mmAnnual}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#Daily
* Frequency7Code.mmDaily}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#Monthly
* Frequency7Code.mmMonthly}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#Quarterly
* Frequency7Code.mmQuarterly}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#SemiAnnual
* Frequency7Code.mmSemiAnnual}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#TenDays
* Frequency7Code.mmTenDays}
* -
* {@linkplain com.tools20022.repository.codeset.Frequency7Code#TriggeredByMovement
* Frequency7Code.mmTriggeredByMovement}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#Weekly
* Frequency7Code.mmWeekly}
* - {@linkplain com.tools20022.repository.codeset.Frequency7Code#IntraDay
* Frequency7Code.mmIntraDay}
*
*
* - {@linkplain com.tools20022.metamodel.MMCodeSet#getTrace trace} =
* {@linkplain com.tools20022.repository.codeset.FrequencyCode FrequencyCode}
* -
* {@linkplain com.tools20022.metamodel.MMTopLevelDictionaryEntry#getDataDictionary
* dataDictionary} =
* {@linkplain com.tools20022.repository.GeneratedRepository#mmdataDict
* GeneratedRepository.mmdataDict}
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getExample
* example} =
*
* - "YEAR"
*
*
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName name} =
* "Frequency7Code"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} = "Specifies the regularity of an event."
*
*/
@XmlJavaTypeAdapter(InternalXmlAdapter.class)
public class Frequency7Code extends MMCode {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Annual"
*
*/
public static final Frequency7Code Annual = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Annual";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.Annual.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Daily"
*
*/
public static final Frequency7Code Daily = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Daily";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.Daily.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Monthly"
*
*/
public static final Frequency7Code Monthly = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Monthly";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.Monthly.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Quarterly"
*
*/
public static final Frequency7Code Quarterly = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Quarterly";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.Quarterly.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "SemiAnnual"
*
*/
public static final Frequency7Code SemiAnnual = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "SemiAnnual";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.SemiAnnual.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "TenDays"
*
*/
public static final Frequency7Code TenDays = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "TenDays";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.TenDays.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "TriggeredByMovement"
*
*/
public static final Frequency7Code TriggeredByMovement = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "TriggeredByMovement";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.TriggeredByMovement.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Weekly"
*
*/
public static final Frequency7Code Weekly = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Weekly";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.Weekly.getCodeName().orElse(name);
}
};
/**
* (No doc)
*
* Constant fields:
*
* - {@linkplain com.tools20022.metamodel.MMCode#getOwner owner} =
* {@linkplain com.tools20022.repository.codeset.Frequency7Code
* Frequency7Code}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "IntraDay"
*
*/
public static final Frequency7Code IntraDay = new Frequency7Code() {
{
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "IntraDay";
owner_lazy = () -> com.tools20022.repository.codeset.Frequency7Code.mmObject();
codeName = FrequencyCode.IntraDay.getCodeName().orElse(name);
}
};
final static private LinkedHashMap codesByName = new LinkedHashMap<>();
protected Frequency7Code() {
}
final static public MMCodeSet mmObject() {
mmObject_lazy.compareAndSet(null, new MMCodeSet() {
{
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
example = Arrays.asList("YEAR");
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "Frequency7Code";
definition = "Specifies the regularity of an event.";
trace_lazy = () -> FrequencyCode.mmObject();
code_lazy = () -> Arrays.asList(com.tools20022.repository.codeset.Frequency7Code.Annual, com.tools20022.repository.codeset.Frequency7Code.Daily, com.tools20022.repository.codeset.Frequency7Code.Monthly,
com.tools20022.repository.codeset.Frequency7Code.Quarterly, com.tools20022.repository.codeset.Frequency7Code.SemiAnnual, com.tools20022.repository.codeset.Frequency7Code.TenDays,
com.tools20022.repository.codeset.Frequency7Code.TriggeredByMovement, com.tools20022.repository.codeset.Frequency7Code.Weekly, com.tools20022.repository.codeset.Frequency7Code.IntraDay);
}
});
return mmObject_lazy.get();
}
static {
codesByName.put(Annual.getCodeName().get(), Annual);
codesByName.put(Daily.getCodeName().get(), Daily);
codesByName.put(Monthly.getCodeName().get(), Monthly);
codesByName.put(Quarterly.getCodeName().get(), Quarterly);
codesByName.put(SemiAnnual.getCodeName().get(), SemiAnnual);
codesByName.put(TenDays.getCodeName().get(), TenDays);
codesByName.put(TriggeredByMovement.getCodeName().get(), TriggeredByMovement);
codesByName.put(Weekly.getCodeName().get(), Weekly);
codesByName.put(IntraDay.getCodeName().get(), IntraDay);
}
public static Frequency7Code valueOf(String codeName) {
return codesByName.get(codeName);
}
public static Frequency7Code[] values() {
Frequency7Code[] values = new Frequency7Code[codesByName.size()];
return codesByName.values().toArray(values);
}
protected static class InternalXmlAdapter extends XmlAdapter {
@Override
public Frequency7Code unmarshal(String codeName) {
return valueOf(codeName);
}
@Override
public String marshal(Frequency7Code codeObj) {
return codeObj.getCodeName().orElse(null);
}
}
}