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

com.tools20022.metamodel.MMMessageAssociationEnd Maven / Gradle / Ivy

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.metamodel;

import com.tools20022.core.metamodel.Derived;
import com.tools20022.core.metamodel.Metamodel.MetamodelAttribute;
import com.tools20022.core.metamodel.Metamodel.MetamodelType;
import static com.tools20022.core.metamodel.StaticMemembersBuilder.newAttribute;
import com.tools20022.metamodel.derived.DeriveMMMessageAssociationEnd_isTechnical;
import com.tools20022.metamodel.derived.DeriveMMMessageAssociationEnd_memberType;
import com.tools20022.metamodel.derived.DeriveMMMessageAssociationEnd_xmlMemberType;
import com.tools20022.metamodel.*;
import java.util.Collections;
import java.util.Date;
import java.util.function.Supplier;
import java.util.List;
import java.util.Optional;

/**
 * Kind of MessageElement that relates two MessageComponentTypes.
 */
public class MMMessageAssociationEnd implements MMMessageElement {

	/**
	 * Indicates if the message element is a composite.
	 */
	public final static MetamodelAttribute isCompositeAttribute = newAttribute();
	/**
	 * The MessageComponentType which specifies the complex content model of a
	 * MessageAssociationEnd.
	 */
	public final static MetamodelAttribute typeAttribute = newAttribute();
	protected boolean isComposite;
	protected Supplier type_lazy;
	protected Supplier businessComponentTrace_lazy;
	protected Supplier businessElementTrace_lazy;
	protected Supplier componentContext_lazy;
	protected boolean isDerived;
	protected String xmlTag;
	protected String name;
	protected String definition;
	protected Supplier> semanticMarkup_lazy;
	protected Supplier> doclet_lazy;
	protected List example;
	protected Supplier> constraint_lazy;
	protected MMRegistrationStatus registrationStatus;
	protected Date removalDate;
	protected Supplier> nextVersions_lazy;
	protected Supplier previousVersion_lazy;
	protected String objectIdentifier;
	protected Integer maxOccurs;
	protected Integer minOccurs;

	@Override
	public MMMessageElementContainer getContainer() {
		return getComponentContext();
	}

	@Override
	public MetamodelType getMetamodel() {
		return StandardMetamodel2013.metamodel().getTypeByClass(getClass());
	}

	public static MetamodelType metaType() {
		return StandardMetamodel2013.metamodel().getTypeByClass(MMMessageAssociationEnd.class);
	}

	/**
	 * Indicates if the message element is a composite.
	 */
	public boolean isIsComposite() {
		return isComposite;
	}

	/**
	 * The MessageComponentType which specifies the complex content model of a
	 * MessageAssociationEnd.
	 */
	public MMMessageComponentType getType() {
		return type_lazy.get();
	}

	@Derived
	@Override
	public boolean isIsTechnical() {
		return (new DeriveMMMessageAssociationEnd_isTechnical()).apply(this);
	}

	@Override
	public Optional getBusinessComponentTrace() {
		return businessComponentTrace_lazy == null ? Optional.empty() : Optional.of(businessComponentTrace_lazy.get());
	}

	@Override
	public Optional getBusinessElementTrace() {
		return businessElementTrace_lazy == null ? Optional.empty() : Optional.of(businessElementTrace_lazy.get());
	}

	@Override
	public MMMessageElementContainer getComponentContext() {
		return componentContext_lazy.get();
	}

	@Override
	public boolean isIsDerived() {
		return isDerived;
	}

	@Override
	public Optional getXmlTag() {
		return xmlTag == null ? Optional.empty() : Optional.of(xmlTag);
	}

	@Derived
	@Override
	public MMLogicalType getXmlMemberType() {
		return (new DeriveMMMessageAssociationEnd_xmlMemberType()).apply(this);
	}

	@Derived
	@Override
	public MMRepositoryType getMemberType() {
		return (new DeriveMMMessageAssociationEnd_memberType()).apply(this);
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Optional getDefinition() {
		return definition == null ? Optional.empty() : Optional.of(definition);
	}

	@Override
	public List getSemanticMarkup() {
		return semanticMarkup_lazy == null ? Collections.emptyList() : semanticMarkup_lazy.get();
	}

	@Override
	public List getDoclet() {
		return doclet_lazy == null ? Collections.emptyList() : doclet_lazy.get();
	}

	@Override
	public List getExample() {
		return example == null ? Collections.emptyList() : example;
	}

	@Override
	public List getConstraint() {
		return constraint_lazy == null ? Collections.emptyList() : constraint_lazy.get();
	}

	@Override
	public MMRegistrationStatus getRegistrationStatus() {
		return registrationStatus;
	}

	@Override
	public Optional getRemovalDate() {
		return removalDate == null ? Optional.empty() : Optional.of(removalDate);
	}

	@Override
	public List getNextVersions() {
		return nextVersions_lazy == null ? Collections.emptyList() : nextVersions_lazy.get();
	}

	@Override
	public Optional getPreviousVersion() {
		return previousVersion_lazy == null ? Optional.empty() : Optional.of(previousVersion_lazy.get());
	}

	@Override
	public Optional getObjectIdentifier() {
		return objectIdentifier == null ? Optional.empty() : Optional.of(objectIdentifier);
	}

	@Override
	public Optional getMaxOccurs() {
		return maxOccurs == null ? Optional.empty() : Optional.of(maxOccurs);
	}

	@Override
	public Optional getMinOccurs() {
		return minOccurs == null ? Optional.empty() : Optional.of(minOccurs);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy