MultiExtractorBase class to deal with minimum and maximum numbers of elements. This is not used for situations where different subtypes are grouped together (for example, Folder can contain any number of "Features," which can be of type Container, Document, Folder, or Placemark.)
Type parameters
P
element type of the MultiExtractor to be returned. requires implicit evidence of Extractor[P].
Extracts a sequence of elements of type P from the provided NodeSeq, ensuring that the number of extracted elements falls within a specified range. If the extraction succeeds but the resulting sequence does not meet the range requirements, a failure is returned. Non-fatal issues during the extraction are logged and ignored.
Extracts a sequence of elements of type P from the provided NodeSeq, ensuring that the number of extracted elements falls within a specified range. If the extraction succeeds but the resulting sequence does not meet the range requirements, a failure is returned. Non-fatal issues during the extraction are logged and ignored.
Value parameters
nodeSeq
the sequence of XML nodes from which elements of type P are to be extracted.
Attributes
Returns
a Try containing a sequence of extracted elements of type P if successful and the number of elements is within the specified range; otherwise, a failure with the corresponding exception.