Class Level

java.lang.Object
csw.logging.models.Level
All Implemented Interfaces:
LoggingSerializable, enumeratum.EnumEntry, Comparable<Level>, scala.math.Ordered<Level>
Direct Known Subclasses:
Level.DEBUG$, Level.ERROR$, Level.FATAL$, Level.INFO$, Level.TRACE$, Level.WARN$

public abstract class Level extends Object implements enumeratum.EnumEntry, LoggingSerializable, scala.math.Ordered<Level>
A logging level.
  • Constructor Details

    • Level

      public Level(String entryName, int pos)
  • Method Details

    • namesToValuesMap

      public static scala.collection.immutable.Map<String,Level> namesToValuesMap()
    • lowerCaseNamesToValuesMap

      public static final scala.collection.immutable.Map<String,Level> lowerCaseNamesToValuesMap()
    • upperCaseNameValuesToMap

      public static final scala.collection.immutable.Map<String,Level> upperCaseNameValuesToMap()
    • valuesToIndex

      public static final scala.collection.immutable.Map<Level,Object> valuesToIndex()
    • values

      public static scala.collection.immutable.IndexedSeq<Level> values()
    • stringify

      public static String stringify()
    • apply

      public static Level apply(String name)
      Level constructor.

      Parameters:
      name - a level name. Case is ignored.
      Returns:
      the corresponding Level if there is one for that name. Otherwise WARN.
    • hasLevel

      public static boolean hasLevel(String name)
      Checks if a level name exists.

      Parameters:
      name - the level name.
      Returns:
      true if a level with that name exists.
    • extraNamesToValuesMap

      public static scala.collection.immutable.Map<String,A> extraNamesToValuesMap()
    • withName

      public static A withName(String name)
    • withNameOption

      public static scala.Option<A> withNameOption(String name)
    • withNameEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameEither(String name)
    • withNameInsensitive

      public static A withNameInsensitive(String name)
    • withNameUppercaseOnly

      public static A withNameUppercaseOnly(String name)
    • withNameLowercaseOnly

      public static A withNameLowercaseOnly(String name)
    • withNameInsensitiveOption

      public static scala.Option<A> withNameInsensitiveOption(String name)
    • withNameUppercaseOnlyOption

      public static scala.Option<A> withNameUppercaseOnlyOption(String name)
    • withNameLowercaseOnlyOption

      public static scala.Option<A> withNameLowercaseOnlyOption(String name)
    • withNameInsensitiveEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameInsensitiveEither(String name)
    • withNameUppercaseOnlyEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameUppercaseOnlyEither(String name)
    • withNameLowercaseOnlyEither

      public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameLowercaseOnlyEither(String name)
    • indexOf

      public static int indexOf(A member)
    • findValues

      protected static scala.collection.immutable.IndexedSeq<A> findValues()
    • enumeratum$Enum$$existingEntriesString

      public static String enumeratum$Enum$$existingEntriesString()
    • entryName

      public String entryName()
      Specified by:
      entryName in interface enumeratum.EnumEntry
    • pos

      public int pos()
    • name

      public String name()
      A level name.
      Returns:
      (undocumented)
    • compare

      public int compare(Level that)
      Compares levels

      Specified by:
      compare in interface scala.math.Ordered<Level>
      Parameters:
      that - the other level
      Returns:
      x where: - x < 0 when this < that - x == 0 when this == that - x > 0 when this > that