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

org.eclipse.esmf.aspectmodel.loader.DefaultPropertyWrapper Maven / Gradle / Ivy

There is a newer version: 2.9.5
Show newest version
/*
 * Copyright (c) 2024 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.aspectmodel.loader;

import java.util.Optional;

import org.eclipse.esmf.metamodel.Characteristic;
import org.eclipse.esmf.metamodel.Property;
import org.eclipse.esmf.metamodel.ScalarValue;
import org.eclipse.esmf.metamodel.impl.DefaultProperty;

public class DefaultPropertyWrapper extends DefaultProperty {
   private DefaultProperty property;

   public DefaultPropertyWrapper( MetaModelBaseAttributes metaModelBaseAttributes ) {
      super( metaModelBaseAttributes, null, null, false, false, null, false, null );
   }

   @Override
   public String getPayloadName() {
      return property.getPayloadName();
   }

   @Override
   public Optional getExampleValue() {
      return property.getExampleValue();
   }

   @Override
   public boolean isNotInPayload() {
      return property.isNotInPayload();
   }

   @Override
   public boolean isOptional() {
      return property.isOptional();
   }

   @Override
   public boolean isAbstract() {
      return property.isAbstract();
   }

   @Override
   public Optional getExtends() {
      return property.getExtends();
   }

   @Override
   public Optional getCharacteristic() {
      return property.getCharacteristic();
   }

   @Override
   public boolean equals( final Object o ) {
      if ( o != null ) {
         return o.equals( property );
      }
      return false;
   }

   @Override
   public int hashCode() {
      return property.hashCode();
   }

   public void setProperty( DefaultProperty property ) {
      this.property = property;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy