TSF.UmlToolingFramework.Wrappers.EA.Model.getAttributeTagsWithValue C# (CSharp) Method

getAttributeTagsWithValue() public method

public getAttributeTagsWithValue ( string value ) : List
value string
return List
        public List<AttributeTag> getAttributeTagsWithValue(string value)
        {
            List<AttributeTag> attributeTags = new List<AttributeTag>();
            string sqlFindGUIDS = @"select ea_guid from t_attributetag att
                                where att.[VALUE] like '"+ value + "'";
            // get the nodes with the name "ea_guid"
            XmlDocument xmlTagGUIDs = this.SQLQuery(sqlFindGUIDS);
            XmlNodeList tagGUIDNodes = xmlTagGUIDs.SelectNodes(formatXPath("//ea_guid"));
            foreach (XmlNode guidNode in tagGUIDNodes)
            {
            AttributeTag attributeTag =  this.getAttributeTagByGUID(guidNode.InnerText);
            if (attributeTag != null)
            {
                attributeTags.Add(attributeTag);
            }
            }
            return attributeTags;
        }