org.eclipse.esmf.aspectmodel.loader.DefaultPropertyWrapper Maven / Gradle / Ivy
/*
* 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;
}
}