Class MatchingAttributeName


  • public final class MatchingAttributeName
    extends java.lang.Object

    This class models the way in which an IElementProcessor can match an element by one of its attributes.

    It allows the definition of a matching for a specific attribute with a specific prefix (usually that of the dialect including the processor), for every attribute with a specific prefix, and also for simply every attribute.

    Objects of this class are normally built by the constructors of the processors or their extended abstract processor classes.

    Since:
    3.0.0
    • Field Detail

      • matchingAttributeName

        private final AttributeName matchingAttributeName
      • matchingAllAttributesWithPrefix

        private final java.lang.String matchingAllAttributesWithPrefix
      • matchingAllAttributes

        private final boolean matchingAllAttributes
    • Constructor Detail

      • MatchingAttributeName

        private MatchingAttributeName​(TemplateMode templateMode,
                                      AttributeName matchingAttributeName,
                                      java.lang.String matchingAllAttributesWithPrefix,
                                      boolean matchingAllAttributes)
    • Method Detail

      • forAllAttributesWithPrefix

        public static MatchingAttributeName forAllAttributesWithPrefix​(TemplateMode templateMode,
                                                                       java.lang.String matchingAllAttributesWithPrefix)
      • getMatchingAttributeName

        public AttributeName getMatchingAttributeName()
      • getMatchingAllAttributesWithPrefix

        public java.lang.String getMatchingAllAttributesWithPrefix()
      • isMatchingAllAttributes

        public boolean isMatchingAllAttributes()
      • matches

        public boolean matches​(AttributeName attributeName)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object