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
@Unstable
public abstract class AbstractContainerMarker
- extends Object
- implements ContainerMarker
Base class to use for custom Markers which contains values (so which are a bit more than Marker as
defined by SLF4J). For "real" marker use MarkerFactory.getMarker(String).
- Since:
- 5.4M1
- Version:
- $Id: 1e41eedea1bbd0d10b8f571410dafe46c2ca915b $
- See Also:
- Serialized Form
| Fields inherited from interface org.slf4j.Marker |
ANY_MARKER, ANY_NON_NULL_MARKER |
AbstractContainerMarker
public AbstractContainerMarker(String name,
org.slf4j.Marker... references)
- Parameters:
name - the name of the Markerreferences - the other associated markers
getName
public String getName()
- Specified by:
getName in interface org.slf4j.Marker
get
public <M extends org.slf4j.Marker> M get(String name)
- Specified by:
get in interface ContainerMarker
- 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 interface org.slf4j.Marker
hasReferences
public boolean hasReferences()
- Specified by:
hasReferences in interface org.slf4j.Marker
hasChildren
public boolean hasChildren()
- Specified by:
hasChildren in interface org.slf4j.Marker
iterator
public Iterator<org.slf4j.Marker> iterator()
- Specified by:
iterator in interface org.slf4j.Marker
remove
public boolean remove(org.slf4j.Marker referenceToRemove)
- Specified by:
remove in interface org.slf4j.Marker
contains
public boolean contains(org.slf4j.Marker other)
- Specified by:
contains in interface org.slf4j.Marker
contains
public boolean contains(String name)
- Specified by:
contains in interface org.slf4j.Marker
equals
public boolean equals(Object obj)
- Specified by:
equals in interface org.slf4j.Marker- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface org.slf4j.Marker- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004–2014 XWiki. All rights reserved.