package xtract
Created by thayne on 2/2/15.
- Alphabetic
- By Inheritance
- xtract
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class AttributedXPathNode(attr: String, value: Option[String]) extends XPathNode with Product with Serializable
- trait DefaultXmlReaders extends AnyRef
- trait DoubleReaderExtensions extends AnyRef
-
case class
EmptyError(path: XPath = XPath) extends PathError with Product with Serializable
A PathError indicating that the path was missing.
- case class IdxXPathNode(idx: Int) extends XPathNode with Product with Serializable
- trait IterableReaderExtensions extends AnyRef
- case class KeyXPathNode(key: String) extends XPathNode with Product with Serializable
-
case class
MinCountError(atLeast: Int) extends ValidationError with Product with Serializable
A ValidationError indicating there weren't enough entries.
-
case class
MismatchedLabelError(label: String, path: XPath = XPath) extends PathError with Product with Serializable
A PathError indicating that the node(s) at the specified path did not have the expected tag label.
-
case class
MultipleMatchesError(path: XPath = XPath) extends PathError with Product with Serializable
A PathError indicating that the path matched multiple nodes, and only one was expected.
-
trait
ParseError extends AnyRef
Top level types for errors encountered while reading xml with an XmlReader.
-
case class
ParseFailure(errors: Seq[ParseError]) extends ParseResult[Nothing] with Product with Serializable
A ParseResult indicating a failed
-
sealed
trait
ParseResult[+A] extends AnyRef
Trait containing the result of an XmlReader.
Trait containing the result of an XmlReader. It can contain one of the following:
- ParseSuccess indicates a completely successful result
- ParseFailure indicates a completely failed result
- PartialParseSuccess indicates there were recoverable errors and contains both the result and a list of errors that occurred.
-
case class
ParseSuccess[+A](get: A) extends ParseResult[A] with Product with Serializable
A ParseResult indicating a completely successful parse.
-
case class
PartialParseSuccess[+A](get: A, errors: Seq[ParseError]) extends ParseResult[A] with Product with Serializable
A ParseResult indicating a successful parse that had recoverable errors.
A ParseResult indicating a successful parse that had recoverable errors.
Contains both a result value and a list of errors.
-
trait
PathError extends ValidationError
A ValidationError indicating that the input NodeSeq didn't have the expected XPath.
-
case class
RangeError[T](min: T, max: T) extends ValidationError with Product with Serializable
A ValidationError indicating the value was outside the expected range.
- case class RecursiveWildCardXPathNode(regex: Regex) extends XPathNode with Product with Serializable
- case class RecursiveXPathNode(key: String) extends XPathNode with Product with Serializable
-
case class
TypeError[A](tp: Class[A]) extends ValidationError with Product with Serializable
A ValidationError indicating that the input wasn't the correct type.
A ValidationError indicating that the input wasn't the correct type. For example, if an integer was expected, but the input text couldn't be parsed as an integer.
- tp
The Class opject for the expected type.
-
trait
ValidationError extends ParseError
A ParseError caused by some sort of failed validation.
- case class WildCardXPathNode(regex: Regex) extends XPathNode with Product with Serializable
-
case class
XPath(path: List[XPathNode] = Nil) extends Product with Serializable
Class representing an xpath.
Class representing an xpath. It can be applied to a NodeSeq to get a NodeSeq located at that path.
- path
A sequence of XPathNodes to recursively walk down the XML tree to the location of the path.
- sealed trait XPathNode extends Function[NodeSeq, NodeSeq]
-
trait
XmlReader[+A] extends AnyRef
An abstraction for a function that takes a NodeSeq and returns a ParseResult.
An abstraction for a function that takes a NodeSeq and returns a ParseResult.
It is used to parse XML to arbitrary scala objects, and supports combinatorial syntax to easily compose XmlReaders into new XmlReaders.
- trait XmlReaderExtensions extends IterableReaderExtensions with DoubleReaderExtensions
Value Members
-
val
__: XPath.type
Alias for the root XPath
- object ParseFailure extends Serializable
- object ParseResult
-
object
XPath extends XPath
The root XPath path.
- object XmlReader extends DefaultXmlReaders with XmlReaderExtensions