TSF.UmlToolingFramework.Wrappers.EA.ConnectorWrapper.getInformationFlows C# (CSharp) Method

getInformationFlows() public method

convenience method to return the information flows that realize this Relationship
public getInformationFlows ( ) : HashSet
return HashSet
        public virtual HashSet<UML.InfomationFlows.InformationFlow> getInformationFlows()
        {
            HashSet<UML.InfomationFlows.InformationFlow> informationFlows = new HashSet<UML.InfomationFlows.InformationFlow>();
            string sqlGetInformationFlowIDs = @"select x.description
            from (t_connector c
            inner join t_xref x on (x.client = c.ea_guid and x.Name = 'MOFProps'))
            where c.ea_guid = '" + this.guid + "'";
            var queryResult = this.model.SQLQuery(sqlGetInformationFlowIDs);
            var descriptionNode = queryResult.SelectSingleNode(this.model.formatXPath("//description"));
            if (descriptionNode != null)
            {
            foreach (string ifGUID in descriptionNode.InnerText.Split(','))
            {
                var informationFlow = this.model.getRelationByGUID(ifGUID) as UML.InfomationFlows.InformationFlow;
                if (informationFlow != null )
                {
                    informationFlows.Add(informationFlow);
                }
            }
            }
            return informationFlows;
        }