Package org.xwiki.logging.marker
Class TranslationMarker
- java.lang.Object
-
- org.xwiki.logging.marker.AbstractContainerMarker
-
- 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: 0c5b04a971c18973c90f30b13b89fb92e3d2ae92 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TranslationMarker(String translationKey)
TranslationMarker(String translationKey, org.slf4j.Marker... references)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 logreferences
- 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 interfaceorg.slf4j.Marker
- Overrides:
hashCode
in classAbstractContainerMarker
-
equals
public boolean equals(Object other)
- Specified by:
equals
in interfaceorg.slf4j.Marker
- Overrides:
equals
in classAbstractContainerMarker
-
-