Class ElementSelector

java.lang.Object
ch.qos.logback.core.joran.spi.ElementPath
ch.qos.logback.core.joran.spi.ElementSelector

public class ElementSelector extends ElementPath
ElementSelector extends ElementPath with matching operations such as fullPathMatch(ElementPath), getPrefixMatchLength(ElementPath) and getTailMatchLength(ElementPath).

Parts of the path may contain '*' for wildcard matching.

Since:
1.1.0
Author:
Ceki Gülcü
  • Constructor Details

    • ElementSelector

      public ElementSelector()
    • ElementSelector

      public ElementSelector(List<String> list)
    • ElementSelector

      public ElementSelector(String p)
      Build an elementPath from a string. Note that "/x" is considered equivalent to "x" and to "x/"
  • Method Details

    • fullPathMatch

      public boolean fullPathMatch(ElementPath path)
    • getTailMatchLength

      public int getTailMatchLength(ElementPath p)
      Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter. By "tail" components we mean the components at the end of the pattern.
    • isContainedIn

      public boolean isContainedIn(ElementPath p)
    • getPrefixMatchLength

      public int getPrefixMatchLength(ElementPath p)
      Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter. By "prefix" components we mean the components at the beginning of the pattern.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ElementPath
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object