Exemple #1
0
        public string EvalFeatureType(AdminShell.Referable rf)
        {
            if (rf is AdminShell.SubmodelElement sme)
            {
                if (sme is AdminShell.Property p && p.valueType.HasContent())
                {
                    return(p.valueType);
                }

                return(AdminShell.SubmodelElementWrapper.GetElementNameByAdequateType(sme));
            }

            return(rf.GetElementName());
        }
 private void repReferable(string head, AdminShell.Referable rf)
 {
     //-9- {Referable}.{idShort, category, description, description[@en..], elementName, parent}
     if (rf.idShort != null)
     {
         rep(head + "idShort", rf.idShort);
     }
     if (rf.category != null)
     {
         rep(head + "category", rf.category);
     }
     if (rf.description != null)
     {
         repListOfLangStr(head + "description", rf.description.langString);
     }
     rep(head + "elementName", "" + rf.GetElementName());
     rep(head + "parent", "" + ((rf.parent?.idShort != null) ? rf.parent.idShort : "-"));
 }