|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Marker
Markers are named objects used to enrich log statements. Conforming logging system Implementations of SLF4J determine how information conveyed by markers are used, if at all. In particular, many conforming logging systems ignore marker data.
Markers can contain references to other markers, which in turn may contain references of their own.
Field Summary | |
---|---|
static String |
ANY_MARKER
This constant represents any marker, including a null marker. |
static String |
ANY_NON_NULL_MARKER
This constant represents any non-null marker. |
Method Summary | |
---|---|
void |
add(Marker reference)
Add a reference to another Marker. |
boolean |
contains(Marker other)
Does this marker contain a reference to the 'other' marker? |
boolean |
contains(String name)
Does this marker contain the marker named 'name'? |
boolean |
equals(Object o)
Markers are considered equal if they have the same name. |
String |
getName()
Get the name of this Marker. |
boolean |
hasChildren()
Deprecated. Replaced by hasReferences() . |
int |
hashCode()
Compute the hash code based on the name of this marker. |
boolean |
hasReferences()
Does this marker have any references? |
Iterator |
iterator()
Returns an Iterator which can be used to iterate over the references of this marker. |
boolean |
remove(Marker reference)
Remove a marker reference. |
Field Detail |
---|
static final String ANY_MARKER
static final String ANY_NON_NULL_MARKER
Method Detail |
---|
String getName()
void add(Marker reference)
reference
- a reference to another marker
IllegalArgumentException
- if 'reference' is nullboolean remove(Marker reference)
reference
- the marker reference to remove
boolean hasChildren()
hasReferences()
.
boolean hasReferences()
Iterator iterator()
boolean contains(Marker other)
other
- The marker to test for inclusion.
IllegalArgumentException
- if 'other' is nullboolean contains(String name)
other
- The marker to test for inclusion.
boolean equals(Object o)
equals
in class Object
o
-
int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |