Beispiel #1
0
        public void AddDbEntryProperty(string dbReferenceType, string dbReferenceId, string protertyType, string protertyValue)
        {
            DbReferenceType type = DbReferenceType.GetDbReferenceType(dbReferenceType);

            if (type == null)
            {
                return;
            }
            dbEntries[type][dbReferenceId].AddProperty(protertyType, protertyValue);
        }
Beispiel #2
0
        public void AddDbEntry(string dbReferenceType, string dbReferenceId)
        {
            if (dbEntries == null)
            {
                dbEntries = new Dictionary <DbReferenceType, Dictionary <string, UniprotDbReference> >();
            }
            DbReferenceType type = DbReferenceType.GetDbReferenceType(dbReferenceType);

            if (type == null)
            {
                return;
            }
            if (!dbEntries.ContainsKey(type))
            {
                dbEntries.Add(type, new Dictionary <string, UniprotDbReference>());
            }
            if (!dbEntries[type].ContainsKey(dbReferenceId))
            {
                dbEntries[type].Add(dbReferenceId, new UniprotDbReference());
            }
        }