Class CompoundFormatStep

java.lang.Object
org.jboss.logmanager.formatters.CompoundFormatStep
All Implemented Interfaces:
FormatStep

public class CompoundFormatStep extends Object implements FormatStep
A compound format step. Create via FormatStep.createCompoundStep(FormatStep...).
  • Constructor Details

    • CompoundFormatStep

      protected CompoundFormatStep(FormatStep[] clonedSteps)
  • Method Details

    • render

      public void render(Formatter formatter, StringBuilder builder, ExtLogRecord record)
      Description copied from interface: FormatStep
      Render a part of the log record to the given formatter.
      Specified by:
      render in interface FormatStep
      Parameters:
      formatter - the formatter to render to
      builder - the string builder to append to
      record - the record being rendered
    • render

      public void render(StringBuilder builder, ExtLogRecord record)
      Description copied from interface: FormatStep
      Render a part of the log record.
      Specified by:
      render in interface FormatStep
      Parameters:
      builder - the string builder to append to
      record - the record being rendered
    • estimateLength

      public int estimateLength()
      Description copied from interface: FormatStep
      Emit an estimate of the length of data which this step will produce. The more accurate the estimate, the more likely the format operation will be performant.
      Specified by:
      estimateLength in interface FormatStep
      Returns:
      an estimate
    • isCallerInformationRequired

      public boolean isCallerInformationRequired()
      Description copied from interface: FormatStep
      Indicates whether or not caller information is required for this format step.
      Specified by:
      isCallerInformationRequired in interface FormatStep
      Returns:
      true if caller information is required, otherwise false
    • getItemType

      public FormatStep.ItemType getItemType()
      Description copied from interface: FormatStep
      Get the item type of this step.
      Specified by:
      getItemType in interface FormatStep
      Returns:
      the item type
    • childStepCount

      public int childStepCount()
      Specified by:
      childStepCount in interface FormatStep
    • getChildStep

      public FormatStep getChildStep(int idx)
      Specified by:
      getChildStep in interface FormatStep
    • childSteps

      public FormatStep[] childSteps()
      Description copied from interface: FormatStep
      Get child steps that compose this step.
      Specified by:
      childSteps in interface FormatStep
      Returns:
      the child steps (not null)