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); } }
protected internal override void SetReferenceIdentifier(IModelElementInstance referenceSourceElement, string referenceIdentifier) { // TODO: implement something more robust (CAM-4028) referenceSourceElement.SetAttributeValue("href", "#" + referenceIdentifier); }