public abstract class XmlTagRuleProviderBase extends XmlTagRuleProvider
Modifier and Type | Class and Description |
---|---|
static class |
XmlTagRuleProviderBase.ConditionRule |
static class |
XmlTagRuleProviderBase.Effect |
static class |
XmlTagRuleProviderBase.InvalidAllExpectSome |
static class |
XmlTagRuleProviderBase.InvalidAttrEffect |
static class |
XmlTagRuleProviderBase.RequireAttributeOneOf |
static class |
XmlTagRuleProviderBase.ShouldHaveParams |
XmlTagRuleProvider.Rule
EP_NAME
Constructor and Description |
---|
XmlTagRuleProviderBase() |
Modifier and Type | Method and Description |
---|---|
static PsiElement |
getAttributeNameElement(XmlAttribute attribute) |
static PsiElement |
getTagNameElement(XmlTag tag) |
static PsiElement |
getXmlElement(RoleFinder roleFinder,
XmlElement tag) |
static Condition<XmlTag> |
ifAttrPresent(java.lang.String attrName) |
static XmlTagRuleProviderBase.Effect |
invalid(java.lang.String attrName,
java.lang.String text) |
static boolean |
isClosedTag(XmlTag tag) |
static XmlTagRuleProviderBase.RequireAttributeOneOf |
requireAttr(java.lang.String... attributeNames) |
static XmlTagRuleProvider.Rule |
rule(Condition<? super XmlTag> condition,
XmlTagRuleProviderBase.Effect... effect) |
static XmlTagRuleProviderBase.ShouldHaveParams |
shouldHaveParams() |
static XmlTagRuleProviderBase.Effect |
unused(java.lang.String attrName) |
static XmlTagRuleProviderBase.Effect |
unused(java.lang.String attrName,
java.lang.String text) |
static XmlTagRuleProviderBase.Effect |
unusedAll(java.lang.String text,
java.lang.String... attrNames) |
static XmlTagRuleProvider.Rule |
unusedAllIfPresent(java.lang.String attrPresent,
java.lang.String... attrUnused) |
static XmlTagRuleProvider.Rule |
unusedIfPresent(java.lang.String attrPresent,
java.lang.String... attrUnused) |
getTagRule
public static XmlTagRuleProviderBase.RequireAttributeOneOf requireAttr(java.lang.String... attributeNames)
public static XmlTagRuleProviderBase.ShouldHaveParams shouldHaveParams()
public static XmlTagRuleProvider.Rule unusedIfPresent(java.lang.String attrPresent, java.lang.String... attrUnused)
public static XmlTagRuleProvider.Rule unusedAllIfPresent(java.lang.String attrPresent, java.lang.String... attrUnused)
public static XmlTagRuleProviderBase.Effect invalid(java.lang.String attrName, java.lang.String text)
public static XmlTagRuleProviderBase.Effect unused(java.lang.String attrName)
public static XmlTagRuleProviderBase.Effect unused(java.lang.String attrName, java.lang.String text)
public static XmlTagRuleProviderBase.Effect unusedAll(java.lang.String text, java.lang.String... attrNames)
public static XmlTagRuleProvider.Rule rule(Condition<? super XmlTag> condition, XmlTagRuleProviderBase.Effect... effect)
public static PsiElement getXmlElement(RoleFinder roleFinder, XmlElement tag)
public static PsiElement getTagNameElement(XmlTag tag)
public static PsiElement getAttributeNameElement(XmlAttribute attribute)
public static boolean isClosedTag(XmlTag tag)