Package ch.qos.logback.core.joran.spi
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 extendsElementPathwith matching operations such asfullPathMatch(ElementPath),getPrefixMatchLength(ElementPath)andgetTailMatchLength(ElementPath).Parts of the path may contain '*' for wildcard matching.
- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description ElementSelector()ElementSelector(java.lang.String p)Build an elementPath from a string.ElementSelector(java.util.List<java.lang.String> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)booleanfullPathMatch(ElementPath path)intgetPrefixMatchLength(ElementPath p)Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter.intgetTailMatchLength(ElementPath p)Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter.inthashCode()booleanisContainedIn(ElementPath p)-
Methods inherited from class ch.qos.logback.core.joran.spi.ElementPath
duplicate, get, getCopyOfPartList, peekLast, pop, push, size, toString
-
-
-
-
Method Detail
-
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(java.lang.Object o)
- Overrides:
equalsin classElementPath
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-