org.xwiki.logging.marker
Class AbstractContainerMarker

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.slf4j.Marker
ANY_MARKER, ANY_NON_NULL_MARKER
 
Constructor Summary
AbstractContainerMarker(String name, org.slf4j.Marker... references)
           
 
Method Summary
 void add(org.slf4j.Marker reference)
           
 boolean contains(org.slf4j.Marker other)
           
 boolean contains(String name)
           
 boolean equals(Object obj)
           
<M extends org.slf4j.Marker>
M
get(String name)
           
 String getName()
           
 boolean hasChildren()
           
 int hashCode()
           
 boolean hasReferences()
           
 Iterator<org.slf4j.Marker> iterator()
           
 boolean remove(org.slf4j.Marker referenceToRemove)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractContainerMarker

public AbstractContainerMarker(String name,
                               org.slf4j.Marker... references)
Parameters:
name - the name of the Marker
references - the other associated markers
Method Detail

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.