public JSRawCitationItem CreateJSRawCitationItem(EntryAndPagePair entryAndPagePair) { if (entryAndPagePair == null) throw new ArgumentNullException("entryAndPagePair"); var result = new JSRawCitationItem(context) { ID = entryAndPagePair.ID, Type = GetType(entryAndPagePair.Entry.Classification) }; new Converter(result, entryAndPagePair.Entry).ConvertItem(); return result; }
public JSRawCitationItem CreateJSRawCitationItem(EntryAndPagePair entryAndPagePair) { if (entryAndPagePair == null) { throw new ArgumentNullException("entryAndPagePair"); } var result = new JSRawCitationItem(context) { ID = entryAndPagePair.ID, Type = GetType(entryAndPagePair.Entry.Classification) }; new Converter(result, entryAndPagePair.Entry).ConvertItem(); return(result); }
public void CacheRawCitationItem(JSRawCitationItem rawCitationItem) { jsRawCitationItemCache[rawCitationItem.ID] = rawCitationItem; }
public Converter(JSRawCitationItem item, Entry entry) { this.item = item; tags = entry.GetTagDictionary(); }