Search in sources :

Example 1 with CfmlTagDescription

use of com.intellij.coldFusion.model.info.CfmlTagDescription in project intellij-plugins by JetBrains.

the class CfmlUtil method getAttribute.

@Nullable
public static CfmlAttributeDescription getAttribute(String tagName, String attributeName, Project project) {
    CfmlTagDescription tagDescription = CfmlLangInfo.getInstance(anyProject(project)).getTagAttributes().get(tagName);
    if (tagDescription == null)
        return null;
    final Collection<CfmlAttributeDescription> attributesCollection = tagDescription.getAttributes();
    for (CfmlAttributeDescription af : attributesCollection) {
        if (af.acceptName(attributeName)) {
            return af;
        }
    }
    return null;
}
Also used : CfmlAttributeDescription(com.intellij.coldFusion.model.info.CfmlAttributeDescription) CfmlTagDescription(com.intellij.coldFusion.model.info.CfmlTagDescription) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

CfmlAttributeDescription (com.intellij.coldFusion.model.info.CfmlAttributeDescription)1 CfmlTagDescription (com.intellij.coldFusion.model.info.CfmlTagDescription)1 Nullable (org.jetbrains.annotations.Nullable)1