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

io.openmanufacturing.sds.staticmetamodel.StaticProperty Maven / Gradle / Ivy

/*
 * Copyright (c) 2021 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 io.openmanufacturing.sds.staticmetamodel;

import java.util.Optional;

import io.openmanufacturing.sds.metamodel.Characteristic;
import io.openmanufacturing.sds.metamodel.Property;
import io.openmanufacturing.sds.metamodel.ScalarValue;
import io.openmanufacturing.sds.metamodel.impl.DefaultProperty;
import io.openmanufacturing.sds.metamodel.loader.MetaModelBaseAttributes;

/**
 * Extends the BAMM {@link DefaultProperty} definition with a concrete type.
 */
public abstract class StaticProperty extends DefaultProperty {

   public StaticProperty(
         final MetaModelBaseAttributes metaModelBaseAttributes,
         final Characteristic characteristic,
         final Optional exampleValue,
         final boolean optional,
         final boolean notInPayload,
         final Optional payloadName,
         final boolean isAbstract,
         final Optional extends_ ) {
      super( metaModelBaseAttributes, Optional.of( characteristic ), exampleValue, optional, notInPayload, payloadName, isAbstract, extends_ );
   }

   /**
    * @return the type of the Property represented as a class.
    */
   public abstract Class getPropertyType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy