Class LocalizedMarker

java.lang.Object
org.forgerock.i18n.slf4j.LocalizedMarker
All Implemented Interfaces:
Serializable, org.slf4j.Marker

public class LocalizedMarker extends Object implements org.slf4j.Marker
An implementation of SLF4J marker that contains a LocalizableMessage and does not allow to manage references to other markers.
See Also:
  • Field Summary

    Fields inherited from interface org.slf4j.Marker

    ANY_MARKER, ANY_NON_NULL_MARKER
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalizedMarker(org.forgerock.i18n.LocalizableMessage message)
    Create a marker with provided localizable message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.slf4j.Marker reference)
    boolean
    boolean
    contains(org.slf4j.Marker other)
    org.forgerock.i18n.LocalizableMessage
    Returns the message embedded into this marker.
    boolean
    boolean
    Iterator<org.slf4j.Marker>
    boolean
    remove(org.slf4j.Marker reference)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.slf4j.Marker

    equals, hashCode
  • Constructor Details

    • LocalizedMarker

      public LocalizedMarker(org.forgerock.i18n.LocalizableMessage message)
      Create a marker with provided localizable message.

      Name of the marker is the resource name provided by the message.

      Parameters:
      message - Message embedded into this marker.
  • Method Details

    • getMessage

      public org.forgerock.i18n.LocalizableMessage getMessage()
      Returns the message embedded into this marker.
      Returns:
      the localizable message.
    • 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<org.slf4j.Marker> 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