Пример #1
0
        public virtual void SetValue <T>(IModelElementInstance modelElement, T value)
        {
            string xmlValue = ConvertModelValueToXmlValue(value);

            if (string.ReferenceEquals(NamespaceUri, null))
            {
                modelElement.SetAttributeValue(AttributeName, xmlValue, IdAttribute);
            }
            else
            {
                modelElement.SetAttributeValueNs(NamespaceUri, AttributeName, xmlValue, IdAttribute);
            }
        }
Пример #2
0
 protected internal override void SetReferenceIdentifier(IModelElementInstance referenceSourceElement, string referenceIdentifier)
 {
     // TODO: implement something more robust (CAM-4028)
     referenceSourceElement.SetAttributeValue("href", "#" + referenceIdentifier);
 }