예제 #1
0
        /**
         * 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;
        }
예제 #2
0
 public bool Match(MetadataProperty property)
 {
     return property.Name.Equals(Name);
 }
예제 #3
0
        /**
         * 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;
        }