public static class ParserOptions.Builder extends Object
ParserOptions
easier to create.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ParserOptions |
build()
Creates an instance of
ParserOptions with all the values set. |
ParserOptions.Builder |
errorPrintStream(PrintStream errorPrintStream)
Set the
PrintStream to which parsing errors and warnings are printed. |
boolean |
stopOnError()
The value of the stopOnError parameter.
|
ParserOptions.Builder |
stopOnError(boolean stopOnError)
Sets the value of the stopOnError parameter.
|
boolean |
suppressOutput()
The value of the suppressOutput parameter.
|
ParserOptions.Builder |
suppressOutput(boolean suppressOutput)
Sets the value for the suppressOutput parameter.
|
boolean |
warningsFatal()
The value of the warningsFatal parameter.
|
ParserOptions.Builder |
warningsFatal(boolean warningsFatal)
Sets the value for the warningsFatal parameter.
|
boolean |
xIncludeAware()
Is the parser XInclude aware?
|
ParserOptions.Builder |
xIncludeAware(boolean xIncludeAware)
Is the parser XInclude aware?
|
String |
xsdFilename()
Returns the name of the schema file.
|
ParserOptions.Builder |
xsdFilename(String xsdFilename)
Sets the schema filename.
|
public boolean stopOnError()
public ParserOptions.Builder stopOnError(boolean stopOnError)
stopOnError
- the new value for the parameter.public boolean warningsFatal()
public ParserOptions.Builder warningsFatal(boolean warningsFatal)
warningsFatal
- the new value for the parameter.public boolean suppressOutput()
public ParserOptions.Builder suppressOutput(boolean suppressOutput)
suppressOutput
- the new value for the parameter.public boolean xIncludeAware()
public ParserOptions.Builder xIncludeAware(boolean xIncludeAware)
xIncludeAware
- true if the parser should be XInclude aware.public String xsdFilename()
public ParserOptions.Builder xsdFilename(String xsdFilename)
xsdFilename
- the name of the schema file.public ParserOptions.Builder errorPrintStream(PrintStream errorPrintStream)
PrintStream
to which parsing errors and warnings are printed.errorPrintStream
- to which parsing errors and warnings are printed.public ParserOptions build()
ParserOptions
with all the values set.ParserOptions
with all the values set.Copyright © 2013-2022 Real Logic Limited. All Rights Reserved.