예제 #1
0
        private TemplateSet addCategory()
        {
            TemplateSet ts = new TemplateSet();

            ((ts[0] as KeyList)[0] as Teasp).setAll(getUnhandled(), new TermNoteXML("unknownTermType"));

            ValueGroup vg1 = new ValueGroup()
            {
                "abbreviation", "acronym", "equation", "formula", "internationalism", "symbol"
            };
            ValueGroup vg2 = new ValueGroup()
            {
                "common name", "full form", "international scientific term", "part number", "short form", "transcribed form", "transliterated form"
            };
            ValueGroup vg3 = new ValueGroup()
            {
                "phraseologism", "stock keeping unit", "orthographical variant"
            };
            ValueGroup vg4 = new ValueGroup()
            {
                "antonym"
            };

            (ts[0] as KeyList).addValueGroup(vg1);
            (ts[0] as KeyList).addValueGroup(vg2);
            (ts[0] as KeyList).addValueGroup(vg3);
            (ts[0] as KeyList).addValueGroup(vg4);

            TermNoteXML xml = new TermNoteXML("termType");

            Teasp specialTeasp1 = new Teasp();

            specialTeasp1.setAll(getTermNote(), xml);
            Teasp specialTeasp2 = new Teasp();

            specialTeasp2.setAll(getTermNote(), xml, "camel case");
            Teasp specialTeasp3 = new Teasp();

            specialTeasp3.setAll(getTermNote(), xml,
                                 new Dictionary <string, string>()
            {
                { "stock keeping unit", "sku" },
                { "phraseologism", "phraseologicalUnit" },
                { "orthographical variant", "variant" }
            }
                                 );
            Teasp specialTeasp4 = new Teasp();

            specialTeasp4.setAll(getTermNote(), new TermNoteXML("antonymTerm"), placement: "null");

            ts.addSpecialTeasp(specialTeasp1);
            ts.addSpecialTeasp(specialTeasp2);
            ts.addSpecialTeasp(specialTeasp3);
            ts.addSpecialTeasp(specialTeasp4);

            return(ts);
        }
예제 #2
0
        private TemplateSet addTermStatus()
        {
            TemplateSet ts = new TemplateSet();

            ((ts[0] as KeyList)[0] as Teasp).setAll(getUnhandled(), new AdminXML("Status"));

            ValueGroup vg1 = new ValueGroup()
            {
                "new", "nonstandardized", "proposed", "recommended"
            };
            ValueGroup vg2 = new ValueGroup()
            {
                "admitted", "deprecated", "legal", "preferred", "regulated", "standardized", "superseded"
            };

            (ts[0] as KeyList).addValueGroup(vg1);
            (ts[0] as KeyList).addValueGroup(vg2);

            Teasp specialTeasp1 = new Teasp();

            specialTeasp1.setAll("termNote", new TermNoteXML("language-planningQualifier"),
                                 new Dictionary <string, string>()
            {
                { "nonstandardized", "nonstandardizedTerm" },
                { "proposed", "proposedTerm" },
                { "new", "newTerm" },
                { "recommended", "recommendedTerm" }
            }
                                 );
            Teasp specialTeasp2 = new Teasp();

            specialTeasp2.setAll("termNote", new TermNoteXML("administrativeStatus"),
                                 new Dictionary <string, string>()
            {
                { "deprecated", "deprecatedTerm-admn-sts" },
                { "regulated", "regulatedTerm-admn-sts" },
                { "admitted", "admittedTerm-admn-sts" },
                { "standardized", "standardizedTerm-admin-sts" },
                { "legal", "legalTerm-admn-sts" },
                { "superseded", "superseded-admn-sts" },
                { "preferred", "preferredTerm-admn-sts" }
            }
                                 );

            ts.addSpecialTeasp(specialTeasp1);
            ts.addSpecialTeasp(specialTeasp2);

            return(ts);
        }
예제 #3
0
 /// <summary>
 /// Add a special Teasp to the TemplateSet
 /// </summary>
 /// <param name="teasp">A Teasp object</param>
 public void addSpecialTeasp(Teasp teasp)
 {
     Add(teasp);
 }