org.eclipse.esmf.metamodel.impl.DefaultAbstractEntity Maven / Gradle / Ivy
/*
* Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
*
* See the AUTHORS file(s) distributed with this work for additional
* information regarding authorship.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/
package org.eclipse.esmf.metamodel.impl;
import java.util.List;
import java.util.Optional;
import org.eclipse.esmf.aspectmodel.loader.MetaModelBaseAttributes;
import org.eclipse.esmf.aspectmodel.loader.ModelElementFactory;
import org.eclipse.esmf.aspectmodel.urn.AspectModelUrn;
import org.eclipse.esmf.aspectmodel.visitor.AspectVisitor;
import org.eclipse.esmf.metamodel.AbstractEntity;
import org.eclipse.esmf.metamodel.ComplexType;
import org.eclipse.esmf.metamodel.Property;
public class DefaultAbstractEntity extends DefaultComplexType implements AbstractEntity {
public static DefaultAbstractEntity createDefaultAbstractEntity(
final MetaModelBaseAttributes metaModelBaseAttributes,
final List properties,
@SuppressWarnings( "checkstyle:ParameterName" ) final Optional extends_,
final List extendingElements ) {
return new DefaultAbstractEntity( metaModelBaseAttributes, properties, extends_, extendingElements, null );
}
public DefaultAbstractEntity( final MetaModelBaseAttributes metaModelBaseAttributes,
final List properties,
@SuppressWarnings( "checkstyle:ParameterName" ) final Optional extends_,
final List extendingElements,
final ModelElementFactory loadedElements
) {
super( metaModelBaseAttributes, properties, extends_, extendingElements, loadedElements );
}
/**
* Accepts an Aspect visitor
*
* @param visitor The visitor to accept
* @param The result type of the traversal operation
* @param The context of the visitor traversal
*/
@Override
public T accept( final AspectVisitor visitor, final C context ) {
return visitor.visitAbstractEntity( this, context );
}
}