/** * print a list of metadata line. */ protected StringBuilder printList(List<Param> list, MetadataProperty property, StringBuilder sb) { foreach (Param param in list){ sb.Append(printProperty(property, param)).Append(MZTabConstants.NEW_LINE); } return sb; }
public bool Match(MetadataProperty property) { return property.Name.Equals(Name); }
/** * MTD {element}[id]-{property} {value.toString} */ protected string printProperty(MetadataProperty property, Object value) { string result = string.Format("{0}{1}{2}{3}{4}", Prefix, MZTabConstants.TAB, Reference, MZTabConstants.MINUS, property); if (value != null){ result += string.Format("{0}{1}", MZTabConstants.TAB, value); } return result; }