コード例 #1
0
 internal override void SetXML(XmlElement xml, BaseClassIfc host, Dictionary <string, XmlElement> processed)
 {
     base.SetXML(xml, host, processed);
     setAttribute(xml, "Description", Description);
     setAttribute(xml, "Language", Language);
     if (mReferencedLibrary > 0)
     {
         xml.AppendChild(ReferencedLibrary.GetXML(xml.OwnerDocument, "ReferencedLibrary", this, processed));
     }
 }
コード例 #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     setAttribute(obj, "Description", Description);
     setAttribute(obj, "Language", Language);
     if (mReferencedLibrary > 0)
     {
         obj["ReferencedLibrary"] = ReferencedLibrary.getJson(this, processed);
     }
 }
コード例 #3
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     setAttribute(obj, "Description", Description);
     setAttribute(obj, "Language", Language);
     if (mReferencedLibrary != null)
     {
         obj["ReferencedLibrary"] = ReferencedLibrary.getJson(this, options);
     }
 }
コード例 #4
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(Location != null ? Location.ToStepValue() : "$");
            parameters.Add(Identification != null ? Identification.ToStepValue() : "$");
            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(Language != null ? Language.ToStepValue() : "$");
            parameters.Add(ReferencedLibrary != null ? ReferencedLibrary.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }