コード例 #1
0
        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);
        }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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);
 }