Package org.xwiki.logging.marker
Class AbstractContainerMarker
- java.lang.Object
-
- org.xwiki.logging.marker.AbstractContainerMarker
-
- All Implemented Interfaces:
Serializable
,org.slf4j.Marker
,ContainerMarker
- Direct Known Subclasses:
TranslationMarker
public abstract class AbstractContainerMarker extends Object implements ContainerMarker
Base class to use for customMarker
s which contains values (so which are a bit more thanMarker
as defined by SLF4J). For "real" marker useMarkerFactory.getMarker(String)
.- Since:
- 5.4M1
- Version:
- $Id: 6747d3702aeedf3c66c6185705d45f6dbecba439 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerMarker(String name, org.slf4j.Marker... references)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(org.slf4j.Marker reference)
boolean
contains(String name)
boolean
contains(org.slf4j.Marker other)
boolean
equals(Object obj)
<M extends org.slf4j.Marker>
Mget(String name)
String
getName()
boolean
hasChildren()
int
hashCode()
boolean
hasReferences()
Iterator<org.slf4j.Marker>
iterator()
boolean
remove(org.slf4j.Marker referenceToRemove)
String
toString()
-
-
-
Constructor Detail
-
AbstractContainerMarker
public AbstractContainerMarker(String name, org.slf4j.Marker... references)
- Parameters:
name
- the name of theMarker
references
- the other associated markers
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.slf4j.Marker
-
get
public <M extends org.slf4j.Marker> M get(String name)
- Specified by:
get
in interfaceContainerMarker
- Type Parameters:
M
- the type of the marker- Parameters:
name
- the name of the marker- Returns:
- the marker of null if none could be found
-
add
public void add(org.slf4j.Marker reference)
- Specified by:
add
in interfaceorg.slf4j.Marker
-
hasReferences
public boolean hasReferences()
- Specified by:
hasReferences
in interfaceorg.slf4j.Marker
-
hasChildren
public boolean hasChildren()
- Specified by:
hasChildren
in interfaceorg.slf4j.Marker
-
iterator
public Iterator<org.slf4j.Marker> iterator()
- Specified by:
iterator
in interfaceorg.slf4j.Marker
-
remove
public boolean remove(org.slf4j.Marker referenceToRemove)
- Specified by:
remove
in interfaceorg.slf4j.Marker
-
contains
public boolean contains(org.slf4j.Marker other)
- Specified by:
contains
in interfaceorg.slf4j.Marker
-
contains
public boolean contains(String name)
- Specified by:
contains
in interfaceorg.slf4j.Marker
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-