|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.MarkerManager.Log4jMarker
public static class MarkerManager.Log4jMarker
Consider this class private, it is only public to satisfy Jackson for XML and JSON IO.
The actual Marker implementation.
Internal note: We could make this class package private instead of public if the class
org.apache.logging.log4j.core.jackson.MarkerMixIn
is moved to this package and would of course stay in its current module.
Constructor Summary | |
---|---|
MarkerManager.Log4jMarker(String name)
Constructs a new Marker. |
Method Summary | |
---|---|
Marker |
addParents(Marker... parents)
Adds a Marker as a parent to this Marker. |
boolean |
equals(Object o)
|
String |
getName()
Returns the name of this Marker. |
Marker[] |
getParents()
Returns a list of parents of this Marker. |
int |
hashCode()
|
boolean |
hasParents()
Indicates whether this Marker has references to any other Markers. |
boolean |
isInstanceOf(Marker marker)
Checks whether this Marker is an instance of the specified Marker. |
boolean |
isInstanceOf(String markerName)
Checks whether this Marker is an instance of the specified Marker. |
boolean |
remove(Marker parent)
Removes the specified Marker as a parent of this Marker. |
Marker |
setParents(Marker... markers)
Replaces the set of parent Markers with the provided Markers. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarkerManager.Log4jMarker(String name)
name
- the name of the Marker.
IllegalArgumentException
- if the argument is null
Method Detail |
---|
public Marker addParents(Marker... parents)
Marker
addParents
in interface Marker
parents
- The parent markers to add.
public boolean remove(Marker parent)
Marker
remove
in interface Marker
parent
- The marker to remove.
true
if the marker was removed.public Marker setParents(Marker... markers)
Marker
setParents
in interface Marker
markers
- The new set of parent Markers or null
to clear the parents.
public String getName()
Marker
getName
in interface Marker
public Marker[] getParents()
Marker
getParents
in interface Marker
null
if this Marker has no parents.public boolean hasParents()
Marker
hasParents
in interface Marker
true
if the Marker has parent Markerspublic boolean isInstanceOf(Marker marker)
Marker
isInstanceOf
in interface Marker
marker
- The Marker to check.
true
if this Marker or one of its ancestors is the specified Marker, false
otherwise.public boolean isInstanceOf(String markerName)
Marker
isInstanceOf
in interface Marker
markerName
- The name of the Marker.
true
if this Marker or one of its ancestors matches the specified name, false
otherwise.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.