public static TaggedValueVO getMethodTagFromEAObject(EA.MethodTag eaMethodTagObj) { TaggedValueVO mtvvo = new TaggedValueVO(); mtvvo.name = excludeSpecialChar(eaMethodTagObj.Name); mtvvo.guid = eaMethodTagObj.TagGUID; mtvvo.tagValue = excludeSpecialChar(eaMethodTagObj.Value); mtvvo.notes = eaMethodTagObj.Notes; mtvvo.changed = ' '; return(mtvvo); }
/// <summary> /// Set Tagged Value with 'Name' to a value. It handles long memo fields. /// </summary> /// <param name="tag"></param> /// <param name="value"></param> /// <returns></returns> public static void SetTaggedValue(EA.MethodTag tag, string value) { tag.Value = value.Length > 255 ? MemoString : value; tag.Notes = value; tag.Update(); }
/// <summary> /// Get the value of an element tagged value. It handles Memo field with a lang of > 255 /// </summary> /// <param name="tg"></param> /// <returns></returns> public static string GetTaggedValue(EA.MethodTag tg) { return(tg.Value == MemoString ? tg.Notes : tg.Value); }