/// <summary>Adds a label and it data value to Primitive GeneratedClass Comments in a table format</summary>
 /// <param name="genClass">a GeneratedPrimitive
 /// </param>
 /// <param name="label">optional comment label to add to the class header document table
 /// </param>
 /// <param name="data">the data value to add to the class header document table
 /// </param>
 private void  addOptionalComment(GeneratedPrimitive genClass, System.String label, System.String data)
 {
     if (data != null && (System.Object)data != (System.Object) "")
     {
         genClass.addClassComment("   <tr><td>" + label + "</td><td>" + data + "</td></tr>");
     }
 }
 /// <summary>Adds Class Comments to a Generated Primitive Class</summary>
 /// <param name="genClass">a GeneratedConformanceContainer
 /// </param>
 /// <param name="ac">the AbstractComponent for which the comments are being added to
 /// </param>
 public void  decoratePrimitive(GeneratedPrimitive genClass, AbstractComponent ac)
 {
     genClass.addClassComment("This represents a constrained " + ac.Name + " field, with the following properties:");
     genClass.addClassComment("<table>");
     addOptionalComment(genClass, "Name", ac.Name);
     addOptionalComment(genClass, "Usage", ac.Usage);
     addOptionalComment(genClass, "Data Type", ac.Datatype);
     addOptionalComment(genClass, "Constant Value", ac.ConstantValue);
     addOptionalComment(genClass, "Description", ac.Description);
     addOptionalComment(genClass, "Implementation Note", ac.ImpNote);
     addOptionalComment(genClass, "Predicate", ac.Predicate);
     addOptionalComment(genClass, "Reference", ac.Reference);
     addOptionalComment(genClass, "Length", ac.Length + "");
     if (ac.Table != null && Regex.IsMatch(ac.Table, "[^0]"))
     {
         addOptionalComment(genClass, "Table", ac.Table + "");
     }
     genClass.addClassComment("</table>");
 }