|
SLF4J API Version 1.4.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slf4j.helpers.BasicMarker
public class BasicMarker
An almost trivial implementation of the Marker
interface.
BasicMarker
lets users specify marker
information. However, it does not offer any useful operations on
that information.
Simple logging systems which ignore marker data, just return instances of this class in order to conform to the SLF4J API.
Field Summary |
---|
Fields inherited from interface org.slf4j.Marker |
---|
ANY_MARKER, ANY_NON_NULL_MARKER |
Method Summary | |
---|---|
void |
add(Marker child)
Add a child Marker to this Marker. |
boolean |
contains(Marker other)
Does this marker contain the 'other' marker? Marker A is defined to contain marker B, if A == B or if B is a child of A. |
boolean |
contains(String name)
This method is mainly used with Expression Evaluators. |
String |
getName()
Get the name of this Marker. |
boolean |
hasChildren()
Does this marker have children? |
Iterator |
iterator()
Returns an Iterator which can be used to iterate over the children of this marker. |
boolean |
remove(Marker markerToRemove)
Remove a child Marker. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getName()
Marker
getName
in interface Marker
public void add(Marker child)
Marker
add
in interface Marker
child
- a child markerpublic boolean hasChildren()
Marker
hasChildren
in interface Marker
public Iterator iterator()
Marker
iterator
in interface Marker
public boolean remove(Marker markerToRemove)
Marker
remove
in interface Marker
markerToRemove
- the child Marker to remove
public boolean contains(Marker other)
Marker
contains
in interface Marker
other
- The marker to test for inclusion.
public boolean contains(String name)
contains
in interface Marker
public String toString()
toString
in class Object
|
SLF4J API Version 1.4.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |