com.neeve.rog.log
Enum RogLogUtil.JsonPrettyPrintStyle

java.lang.Object
  extended by java.lang.Enum<RogLogUtil.JsonPrettyPrintStyle>
      extended by com.neeve.rog.log.RogLogUtil.JsonPrettyPrintStyle
All Implemented Interfaces:
Serializable, Comparable<RogLogUtil.JsonPrettyPrintStyle>
Enclosing class:
RogLogUtil

public static enum RogLogUtil.JsonPrettyPrintStyle
extends Enum<RogLogUtil.JsonPrettyPrintStyle>

Json pretty printer styles. RogLogUtil.JSON_CUSTOM_PRETTY_PRINTER_PROP


Enum Constant Summary
Custom
          Can be used to indicate that a the custom implementation of com.fasterxml.jackson.core.PrettyPrinter specified by RogLogUtil.JSON_CUSTOM_PRETTY_PRINTER_PROP should be used.
Default
          Specifies the default jackson pretty printer should be used (DefaultPrettyPrinter)
Minimal
          A minimal single line pretty printer.
PrettyPrint
          Same as default.
SingleLine
          A minimal single line pretty printer.
 
Method Summary
 boolean usesNewLine()
           
static RogLogUtil.JsonPrettyPrintStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RogLogUtil.JsonPrettyPrintStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Default

public static final RogLogUtil.JsonPrettyPrintStyle Default
Specifies the default jackson pretty printer should be used (DefaultPrettyPrinter)


PrettyPrint

public static final RogLogUtil.JsonPrettyPrintStyle PrettyPrint
Same as default.


Minimal

public static final RogLogUtil.JsonPrettyPrintStyle Minimal
A minimal single line pretty printer.


SingleLine

public static final RogLogUtil.JsonPrettyPrintStyle SingleLine
A minimal single line pretty printer. Same as minimal, but with a space after the colon between objects field and value separator (e.g. "intField": 1 vs "intField":1)


Custom

public static final RogLogUtil.JsonPrettyPrintStyle Custom
Can be used to indicate that a the custom implementation of com.fasterxml.jackson.core.PrettyPrinter specified by RogLogUtil.JSON_CUSTOM_PRETTY_PRINTER_PROP should be used.

Method Detail

values

public static RogLogUtil.JsonPrettyPrintStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RogLogUtil.JsonPrettyPrintStyle c : RogLogUtil.JsonPrettyPrintStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RogLogUtil.JsonPrettyPrintStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

usesNewLine

public boolean usesNewLine()


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.