A sequence of all ParseErrors that occurred.
Is the result a success, i.e.
Is the result a success, i.e. either a ParseSuccess or a PartialParseSuccess.
Apply a PartialFunction to the result value.
Apply a PartialFunction to the result value.
If the pf
function isn't defined for the result value a ParseFailure is returned.
Apply a PartialFunction to the result value.
Apply a PartialFunction to the result value.
If the pf
isn't defined for the result value, a ParseFailure with the otherwise
error
is returned.
Predicate to filter the ParseResult by
this if the test passes, or ParseFailure if the test fails.
The error to use if the test fails.
Predicate to filter the ParseResult by
if the result is successful and the filter fails ParseFailure is returned
FlatMap over the result value.
FlatMap over the result value.
One thing to note is that if this is a PartialParseSuccess, then
the errors are prepended to the result of calling f
on the value.
So for example, if f
returns a ParseSuccess, but this is a PartialParseSuccess
the final result will be a PartialParseSuccess containing the result from f
and the
errors from this.
Handle both success and failure.
Handle both success and failure.
Function to handle a ParseFailure.
Function to process a successful parse.
Execute f
on the result value if and only if this ParseResult is successful.
Execute f
on the result value if and only if this ParseResult is successful.
the function to execute.
the result value, unless this is a ParseFailure in which case return otherwise
.
Map a function over the result value.
Map a function over the result value. The level of success, and any errors are propagated.
this if this is successful otherwise return otherwise
.
If this is a ParseFailure recover as a PartialParseSuccess
containing otherwise
so that
the errors are kept.
Convert to an Option
Convert to an Option
a Some containing the result if successful, or a None if a failure
Alias for filter
Trait containing the result of an XmlReader. It can contain one of the following: