ch.qos.logback.core.joran.spi
Class Pattern

java.lang.Object
  extended by ch.qos.logback.core.joran.spi.Pattern

public class Pattern
extends Object

A pattern is used to designate XML elements in a document.

For more information see http://logback.qos.ch/manual/onJoran.html#pattern

Author:
Ceki Gülcü

Constructor Summary
Pattern()
           
Pattern(List<String> list)
           
Pattern(String p)
          Build a pattern from a string.
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 String get(int i)
           
 List<String> getCopyOfPartList()
           
 int getPrefixMatchLength(Pattern p)
          Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter.
 int getTailMatchLength(Pattern p)
          Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter.
 int hashCode()
           
 boolean isContained(Pattern p)
           
 String peekLast()
           
 void pop()
           
 void push(String s)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern()

Pattern

public Pattern(List<String> list)

Pattern

public Pattern(String p)
Build a pattern from a string. Note that "/x" is considered equivalent to "x" and to "x/"

Method Detail

getCopyOfPartList

public List<String> getCopyOfPartList()

clone

public Object clone()
Overrides:
clone in class Object

push

public void push(String s)

size

public int size()

get

public String get(int i)

pop

public void pop()

peekLast

public String peekLast()

getTailMatchLength

public int getTailMatchLength(Pattern 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.


isContained

public boolean isContained(Pattern p)

getPrefixMatchLength

public int getPrefixMatchLength(Pattern 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 Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 QOS.ch. All Rights Reserved.