Class MatchingElementName


  • public final class MatchingElementName
    extends java.lang.Object

    This class models the way in which an IElementProcessor can match an element by its name.

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

    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

      • matchingElementName

        private final ElementName matchingElementName
      • matchingAllElementsWithPrefix

        private final java.lang.String matchingAllElementsWithPrefix
      • matchingAllElements

        private final boolean matchingAllElements
    • Constructor Detail

      • MatchingElementName

        private MatchingElementName​(TemplateMode templateMode,
                                    ElementName matchingElementName,
                                    java.lang.String matchingAllElementsWithPrefix,
                                    boolean matchingAllElements)
    • Method Detail

      • forAllElementsWithPrefix

        public static MatchingElementName forAllElementsWithPrefix​(TemplateMode templateMode,
                                                                   java.lang.String matchingAllElementsWithPrefix)
      • getMatchingElementName

        public ElementName getMatchingElementName()
      • getMatchingAllElementsWithPrefix

        public java.lang.String getMatchingAllElementsWithPrefix()
      • isMatchingAllElements

        public boolean isMatchingAllElements()
      • matches

        public boolean matches​(ElementName elementName)
      • toString

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