public class ParseResult extends WithDiagnostics
DataProcessor.parse(java.nio.channels.ReadableByteChannel, InfosetOutputter, long), containing
the diagnostic information, and the final data location| Constructor and Description |
|---|
ParseResult(edu.illinois.ncsa.daffodil.processors.ParseResult pr,
edu.illinois.ncsa.daffodil.util.Maybe<JDOMInfosetOutputter> deprecatedOutput) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isProcessingError()
Determine if any processing errors occurred.
|
boolean |
isValidationError()
Determine if all validation checks passed based on the validation mode of
the DataProcessor.
|
DataLocation |
location()
Get the
DataLocation where the parse completed |
org.jdom2.Document |
result()
Deprecated.
Use parse(ReadableByteChannel, InfosetInputter) to parse the data and get the infoset representation from the InfosetOutputter. Since 2.0.0.
|
canProceed, getDiagnostics, isErrorpublic ParseResult(edu.illinois.ncsa.daffodil.processors.ParseResult pr,
edu.illinois.ncsa.daffodil.util.Maybe<JDOMInfosetOutputter> deprecatedOutput)
public org.jdom2.Document result()
throws InvalidUsageException
InvalidUsageException - if you call this when isError is true
because in that case there is no result document.
public DataLocation location()
DataLocation where the parse completed
public boolean isProcessingError()
public boolean isValidationError()