Exemple #1
0
        public Dictionary <string, string> GetSubEntryInfoDict(EntrySubInfoKind kind, string name)
        {
            if (_entries.ContainsKey(name))
            {
                var entry = _entries[name];
                switch (kind)
                {
                case EntrySubInfoKind.Attribute:
                    if (!entry.IsDatabase)
                    {
                        break;
                    }
                    return(GetSubEntryValuesDict(entry.DataType.Heading));

                case EntrySubInfoKind.Argument:
                    if (!entry.IsCode)
                    {
                        break;
                    }
                    return(GetSubEntryValuesDict(entry.CodeValue.Value.Lookup));

                case EntrySubInfoKind.Component:
                    if (!entry.IsType)
                    {
                        break;
                    }
                    return(GetSubEntryValuesDict(entry.DataType.Heading));

                default:
                    break;
                }
            }
            return(new Dictionary <string, string>());
        }
 // Retrieve sub-entries for a name
 public ItemInfo GetSubEntries(string name, EntrySubInfoKind kind)
 {
     if (Selector.IsTest)
     {
         return(new ItemInfo());
     }
     if (Gateway == null)
     {
         return(new ItemInfo());
     }
     return(new ItemInfo()
     {
         Name = Name,
         Items = Gateway.GetSubEntryInfoDict(name, kind),
     });
 }
Exemple #3
0
 public abstract Dictionary <string, string> GetSubEntryInfoDict(string name, EntrySubInfoKind kind);
Exemple #4
0
 public override Dictionary <string, string> GetSubEntryInfoDict(string name, EntrySubInfoKind kind)
 {
     return(_catalog.PersistentVars.GetSubEntryInfoDict(kind, name));
 }