org.xwiki.logging
Class TranslationMarker

java.lang.Object
  extended by org.xwiki.logging.TranslationMarker
All Implemented Interfaces:
Serializable, org.slf4j.Marker

public class TranslationMarker
extends Object
implements org.slf4j.Marker

Allows associating a translation key to a log.

Since:
5.0M2
Version:
$Id: bda6ded54cf0eb657f2e316df15f2c27938420e8 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.slf4j.Marker
ANY_MARKER, ANY_NON_NULL_MARKER
 
Constructor Summary
TranslationMarker(String translationKey)
           
 
Method Summary
 void add(org.slf4j.Marker reference)
           
 boolean contains(org.slf4j.Marker other)
           
 boolean contains(String name)
           
 boolean equals(Object other)
           
 String getName()
           
 String getTranslationKey()
           
 boolean hasChildren()
           
 int hashCode()
           
 boolean hasReferences()
           
 Iterator iterator()
           
 boolean remove(org.slf4j.Marker reference)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslationMarker

public TranslationMarker(String translationKey)
Parameters:
translationKey - the translation key to associate to the log
Method Detail

getTranslationKey

public String getTranslationKey()
Returns:
the translation key associate to the log

getName

public String getName()
Specified by:
getName in interface org.slf4j.Marker

add

public void add(org.slf4j.Marker reference)
Specified by:
add in interface org.slf4j.Marker

remove

public boolean remove(org.slf4j.Marker reference)
Specified by:
remove in interface org.slf4j.Marker

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface org.slf4j.Marker

hasReferences

public boolean hasReferences()
Specified by:
hasReferences in interface org.slf4j.Marker

iterator

public Iterator iterator()
Specified by:
iterator 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

hashCode

public int hashCode()
Specified by:
hashCode in interface org.slf4j.Marker
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Specified by:
equals in interface org.slf4j.Marker
Overrides:
equals in class Object


Copyright © 2004-2013 XWiki. All Rights Reserved.