Class ParserOptions.Builder

java.lang.Object
uk.co.real_logic.sbe.xml.ParserOptions.Builder
Enclosing class:
ParserOptions

public static class ParserOptions.Builder extends Object
Builder to make ParserOptions easier to create.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • stopOnError

      public boolean stopOnError()
      The value of the stopOnError parameter.
      Returns:
      true if we should stop on error.
    • stopOnError

      public ParserOptions.Builder stopOnError(boolean stopOnError)
      Sets the value of the stopOnError parameter.
      Parameters:
      stopOnError - the new value for the parameter.
      Returns:
      this instance
    • warningsFatal

      public boolean warningsFatal()
      The value of the warningsFatal parameter.
      Returns:
      true if warnings should be handled as errors.
    • warningsFatal

      public ParserOptions.Builder warningsFatal(boolean warningsFatal)
      Sets the value for the warningsFatal parameter.
      Parameters:
      warningsFatal - the new value for the parameter.
      Returns:
      this instance
    • suppressOutput

      public boolean suppressOutput()
      The value of the suppressOutput parameter.
      Returns:
      true if we should suppress the output.
    • suppressOutput

      public ParserOptions.Builder suppressOutput(boolean suppressOutput)
      Sets the value for the suppressOutput parameter.
      Parameters:
      suppressOutput - the new value for the parameter.
      Returns:
      this instance
    • xIncludeAware

      public boolean xIncludeAware()
      Is the parser XInclude aware?
      Returns:
      true if the parser is XInclude aware.
    • xIncludeAware

      public ParserOptions.Builder xIncludeAware(boolean xIncludeAware)
      Is the parser XInclude aware?
      Parameters:
      xIncludeAware - true if the parser should be XInclude aware.
      Returns:
      this instance
    • xsdFilename

      public String xsdFilename()
      Returns the name of the schema file.
      Returns:
      the name of the schema file.
    • xsdFilename

      public ParserOptions.Builder xsdFilename(String xsdFilename)
      Sets the schema filename.
      Parameters:
      xsdFilename - the name of the schema file.
      Returns:
      this instance
    • errorPrintStream

      public ParserOptions.Builder errorPrintStream(PrintStream errorPrintStream)
      Set the PrintStream to which parsing errors and warnings are printed.
      Parameters:
      errorPrintStream - to which parsing errors and warnings are printed.
      Returns:
      this instance
    • build

      public ParserOptions build()
      Creates an instance of ParserOptions with all the values set.
      Returns:
      an instance of ParserOptions with all the values set.