org.xwiki.logging.marker
Class TranslationMarker

java.lang.Object
  extended by org.xwiki.logging.marker.AbstractContainerMarker
      extended by org.xwiki.logging.marker.TranslationMarker
All Implemented Interfaces:
Serializable, org.slf4j.Marker, ContainerMarker
Direct Known Subclasses:
BeginTranslationMarker, EndTranslationMarker, TranslationMarker

public class TranslationMarker
extends AbstractContainerMarker

Allows associating a translation key to a log.

Since:
5.4M1
Version:
$Id: 9c32e7c847a6800f53438d1ea2cf690ff19a17b4 $
See Also:
Serialized Form

Field Summary
static String NAME
          The marker name.
 
Fields inherited from interface org.slf4j.Marker
ANY_MARKER, ANY_NON_NULL_MARKER
 
Constructor Summary
TranslationMarker(String translationKey)
           
TranslationMarker(String translationKey, org.slf4j.Marker... references)
           
 
Method Summary
 boolean equals(Object other)
           
 String getTranslationKey()
           
 int hashCode()
           
 
Methods inherited from class org.xwiki.logging.marker.AbstractContainerMarker
add, contains, contains, get, getName, hasChildren, hasReferences, iterator, remove, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The marker name.

See Also:
Constant Field Values
Constructor Detail

TranslationMarker

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

TranslationMarker

public TranslationMarker(String translationKey,
                         org.slf4j.Marker... references)
Parameters:
translationKey - the translation key to associate to the log
references - the other associated markers
Method Detail

getTranslationKey

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

hashCode

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

equals

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


Copyright © 2004–2014 XWiki. All rights reserved.