Package uk.co.real_logic.sbe.xml
Class ParserOptions.Builder
java.lang.Object
uk.co.real_logic.sbe.xml.ParserOptions.Builder
- Enclosing class:
- ParserOptions
Builder to make
ParserOptions easier to create.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an instance ofParserOptionswith all the values set.errorPrintStream(PrintStream errorPrintStream) Set thePrintStreamto which parsing errors and warnings are printed.booleanThe value of the stopOnError parameter.stopOnError(boolean stopOnError) Sets the value of the stopOnError parameter.booleanThe value of the suppressOutput parameter.suppressOutput(boolean suppressOutput) Sets the value for the suppressOutput parameter.booleanThe value of the warningsFatal parameter.warningsFatal(boolean warningsFatal) Sets the value for the warningsFatal parameter.booleanIs the parser XInclude aware?xIncludeAware(boolean xIncludeAware) Is the parser XInclude aware?Returns the name of the schema file.xsdFilename(String xsdFilename) Sets the schema filename.
-
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
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
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
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
Is the parser XInclude aware?- Parameters:
xIncludeAware- true if the parser should be XInclude aware.- Returns:
- this instance
-
xsdFilename
Returns the name of the schema file.- Returns:
- the name of the schema file.
-
xsdFilename
Sets the schema filename.- Parameters:
xsdFilename- the name of the schema file.- Returns:
- this instance
-
errorPrintStream
Set thePrintStreamto which parsing errors and warnings are printed.- Parameters:
errorPrintStream- to which parsing errors and warnings are printed.- Returns:
- this instance
-
build
Creates an instance ofParserOptionswith all the values set.- Returns:
- an instance of
ParserOptionswith all the values set.
-