コード例 #1
0
        public virtual string GetXml()
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<auxEntry>", 2);
            xml = XmlLib.AddToXml(xml, "<variant>", "</variant>", variant_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "</auxEntry>", 2);
            return(xml);
        }
コード例 #2
0
        public virtual string GetXml()
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<nounEntry>", 2);
            xml = XmlLib.AddToXml(xml, "<variants>", "</variants>", variants_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<compl>", "</compl>", compl_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<nominalization>", "</nominalization>", nominalization_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<tradeName>", "</tradeName>", tradeName_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<trademark/>", tradeMark_, 3);
            xml = XmlLib.AddToXml(xml, "<proper/>", proper_, 3);
            xml = XmlLib.AddToXml(xml, "</nounEntry>", 2);
            return(xml);
        }
コード例 #3
0
        public virtual string GetXml()
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<verbEntry>", 2);
            xml = XmlLib.AddToXml(xml, "<variants>", "</variants>", variants_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<intran>", "</intran>", intran_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<tran>", "</tran>", tran_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<ditran>", "</ditran>", ditran_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<link>", "</link>", link_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<cplxtran>", "</cplxtran>", cplxtran_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<nominalization>", "</nominalization>", nominalization_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "</verbEntry>", 2);
            return(xml);
        }
コード例 #4
0
        public virtual string GetXml()
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<pronEntry>", 2);
            xml = XmlLib.AddToXml(xml, "<variants>", "</variants>", variants_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<type>", "</type>", type_, 3, convertFlag);
            if (!ReferenceEquals(gender_, null))
            {
                string genderTag = "<gender type=\"" + gender_ + "\"/>";
                xml = XmlLib.AddToXml(xml, genderTag, 3);
            }

            xml = XmlLib.AddToXml(xml, "<interrogative/>", interrogative_, 3);
            xml = XmlLib.AddToXml(xml, "</pronEntry>", 2);
            return(xml);
        }
コード例 #5
0
        public virtual string GetXml()
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<advEntry>", 2);
            xml = XmlLib.AddToXml(xml, "<variants>", "</variants>", variants_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<modification>", "</modification>", modification_, 3, convertFlag);
            if (!ReferenceEquals(negative_, null))
            {
                string negativeTag = "<negative type=\"" + negative_ + "\"/>";
                xml = XmlLib.AddToXml(xml, negativeTag, 3);
            }

            xml = XmlLib.AddToXml(xml, "<interrogative/>", interrogative_, 3);
            xml = XmlLib.AddToXml(xml, "</advEntry>", 2);
            return(xml);
        }
コード例 #6
0
        public virtual string GetXml(int indLevel)
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<lexRecord>", indLevel);
            xml = XmlLib.AddToXml(xml, "<base>", "</base>", base_, indLevel + 1, convertFlag);
            xml = XmlLib.AddToXml(xml, "<eui>", "</eui>", eui_, indLevel + 1, convertFlag);
            xml = XmlLib.AddToXml(xml, "<cat>", "</cat>", category_, indLevel + 1, convertFlag);
            xml = XmlLib.AddToXml(xml, "<spellingVars>", "</spellingVars>", spellingVars_, indLevel + 1,
                                  convertFlag);
            xml = xml + InflVarsAndAgreements.GetXml(this);
            xml = xml + catEntry_.GetXml(category_);
            xml = XmlLib.AddToXml(xml, "<acronyms>", "</acronyms>", acronyms_, indLevel + 1, convertFlag);
            xml = XmlLib.AddToXml(xml, "<abbreviations>", "</abbreviations>", abbreviations_, indLevel + 1,
                                  convertFlag);
            xml = XmlLib.AddToXml(xml, "<annotations>", "</annotations>", annotations_, indLevel + 1, convertFlag);
            xml = XmlLib.AddToXml(xml, "<signature>", "</signature>", signature_, indLevel + 1, convertFlag);
            xml = XmlLib.AddToXml(xml, "</lexRecord>", indLevel);
            return(xml);
        }
コード例 #7
0
        public virtual string GetXml()
        {
            bool   convertFlag = true;
            string xml         = "";

            xml = XmlLib.AddToXml(xml, "<adjEntry>", 2);
            xml = XmlLib.AddToXml(xml, "<variants>", "</variants>", variants_, 3, convertFlag);
            if (position_ != null)
            {
                for (int i = 0; i < position_.Count; i++)
                {
                    string positionTag = "<position type=\"" + (string)position_[i] + "\"/>";
                    xml = XmlLib.AddToXml(xml, positionTag, 3);
                }
            }

            xml = XmlLib.AddToXml(xml, "<compl>", "</compl>", compl_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "<stative/>", stative_, 3);
            xml = XmlLib.AddToXml(xml, "<nominalization>", "</nominalization>", nominalization_, 3, convertFlag);
            xml = XmlLib.AddToXml(xml, "</adjEntry>", 2);
            return(xml);
        }