blob: 266326d1735e7c07f5854c1201ab5689a64f2cf9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2020 Robert Bosch GmbH
* Author: Constantin Ziesche (constantin.ziesche@bosch.com)
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
using BaSyx.Models.Core.AssetAdministrationShell.Generics;
using BaSyx.Models.Core.AssetAdministrationShell.References;
using BaSyx.Models.Core.Common;
using System.Runtime.Serialization;
namespace BaSyx.Models.Core.AssetAdministrationShell.Implementations
{
[DataContract]
public class MultiLanguageProperty : SubmodelElement, IMultiLanguageProperty
{
public override ModelType ModelType => ModelType.MultiLanguageProperty;
public IReference ValueId { get; set; }
public LangStringSet Value { get; set; }
public MultiLanguageProperty(string idShort) : base(idShort)
{
Get = element => { return new ElementValue(Value, new DataType(DataObjectType.LangString, true)); };
Set = (element, value) => { Value = value?.Value as LangStringSet; };
}
}
}