Exemple #1
0
 public override void LoadFromSource()
 {
     EA.Element element = (EA.Element)SourceObject;
     IsReadOnly   = element.Locked;
     Stereotype   = element.Stereotype;
     LastModified = Util.FormatLastModified(element.Modified);
     ChangeNote   = EAHelper.GetTaggedValueNotes(element, R2Const.TV_CHANGENOTE);
     Name         = element.Name;
     Type         = EAHelper.GetTaggedValue(element, R2Const.TV_TYPE);
     LanguageTag  = EAHelper.GetTaggedValue(element, R2Const.TV_LANGUAGETAG);
     Rationale    = EAHelper.GetTaggedValueNotes(element, R2Const.TV_RATIONALE);
     Scope        = EAHelper.GetTaggedValueNotes(element, R2Const.TV_SCOPE);
     PrioDef      = EAHelper.GetTaggedValueNotes(element, R2Const.TV_PRIODEF);
     ConfClause   = EAHelper.GetTaggedValueNotes(element, R2Const.TV_CONFCLAUSE);
 }
Exemple #2
0
 public override void LoadFromSource()
 {
     EA.Element element = (EA.Element)SourceObject;
     IsReadOnly   = element.Locked;
     Stereotype   = element.Stereotype;
     LastModified = Util.FormatLastModified(element.Modified);
     Priority     = EAHelper.GetTaggedValue(element, R2Const.TV_PRIORITY, R2Const.EmptyPriority);
     ChangeNote   = EAHelper.GetTaggedValueNotes(element, R2Const.TV_CHANGENOTE);
     Name         = element.Name;
     Text         = element.Notes;
     SetRow(EAHelper.GetTaggedValue(element, R2Const.TV_ROW));
     SetConditional(EAHelper.GetTaggedValue(element, R2Const.TV_CONDITIONAL));
     SetDependent(EAHelper.GetTaggedValue(element, R2Const.TV_DEPENDENT));
     Optionality = EAHelper.GetTaggedValue(element, R2Const.TV_OPTIONALITY, "");
     SetRefId(EAHelper.GetTaggedValue(element, "Reference.Alias"), EAHelper.GetTaggedValue(element, "Reference.FunctionID"), EAHelper.GetTaggedValue(element, "Reference.CriterionID"));
 }
Exemple #3
0
            public override void LoadFromSource()
            {
                EA.Element element = (EA.Element)SourceObject;
                IsReadOnly   = element.Locked;
                Stereotype   = element.Stereotype;
                LastModified = Util.FormatLastModified(element.Modified);
                Priority     = EAHelper.GetTaggedValue(element, R2Const.TV_PRIORITY, R2Const.EmptyPriority);
                ChangeNote   = EAHelper.GetTaggedValueNotes(element, R2Const.TV_CHANGENOTE);
                FunctionId   = element.Alias;
                Name         = element.Name;
                Dictionary <string, string> noteParts = Util.SplitNotes(element.Notes);

                Statement   = noteParts.ContainsKey("ST") ? noteParts["ST"] : "";
                Description = noteParts.ContainsKey("DE") ? noteParts["DE"] : "";
                SetRefId(EAHelper.GetTaggedValue(element, "Reference.Alias"), EAHelper.GetTaggedValue(element, "Reference.FunctionID"));
            }