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;
}
Aggregations