object XmlReader extends DefaultXmlReaders with XmlReaderExtensions
- Alphabetic
- By Inheritance
- XmlReader
- XmlReaderExtensions
- DoubleReaderExtensions
- IterableReaderExtensions
- DefaultXmlReaders
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class DoubleReaderExtension extends AnyRef
- Definition Classes
- DoubleReaderExtensions
- class IterableReaderExtension[T, I <: Iterable[T]] extends AnyRef
- Definition Classes
- IterableReaderExtensions
- implicit class SeqReaderExtension[T] extends IterableReaderExtension[T, Seq[T]]
- Definition Classes
- IterableReaderExtensions
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def any[T](reader0: XmlReader[T], readers: XmlReader[T]*): XmlReader[T]
An XmlReader that succeeds if any of the supplied readers succeeds with the input.
An XmlReader that succeeds if any of the supplied readers succeeds with the input.
- Definition Classes
- DefaultXmlReaders
- def apply[A](f: (NodeSeq) => ParseResult[A]): XmlReader[A]
Create a new XmlReader from a function that converts a NodeSeq to a ParseResult.
Create a new XmlReader from a function that converts a NodeSeq to a ParseResult.
- f
A transformation function for the transformation done by the XmlReader
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at[A](path: XPath)(implicit reader: XmlReader[A]): XmlReader[A]
An XmlReader that applies
readerto theNodeSeqlocated at the XPathpath.- Definition Classes
- DefaultXmlReaders
- def attribute[A](name: String)(implicit reader: XmlReader[A]): XmlReader[A]
An XmlReader that extracts a value from the attribute of the input NodeSeq.
An XmlReader that extracts a value from the attribute of the input NodeSeq.
- Definition Classes
- DefaultXmlReaders
- implicit val booleanReader: XmlReader[Boolean]
XmlReader that gets the text of a single node as a boolean
XmlReader that gets the text of a single node as a boolean
- Definition Classes
- DefaultXmlReaders
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit val doubleReader: XmlReader[Double]
XmlReader that gets the text of a single node as a double.
XmlReader that gets the text of a single node as a double.
- Definition Classes
- DefaultXmlReaders
- implicit def enum[T <: Enumeration](e: T): XmlReader[DefaultXmlReaders.enum.T.Value]
XmlReader that extracts an enumeration value from a
NodeSeq.XmlReader that extracts an enumeration value from a
NodeSeq. It attempts to match the text of the node to the string value of one of the enumeration values.- Definition Classes
- DefaultXmlReaders
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(error: ParseError): XmlReader[Nothing]
- returns
An XmlReader that always fails with
error
- Definition Classes
- DefaultXmlReaders
- def first[T](implicit reader: XmlReader[T]): XmlReader[T]
An XmlReader that extracts the first node of the NodeSeq
An XmlReader that extracts the first node of the NodeSeq
- Definition Classes
- DefaultXmlReaders
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit val identityReader: XmlReader[NodeSeq]
Identity XmlReader that just extracts the
NodeSeqit is passed.Identity XmlReader that just extracts the
NodeSeqit is passed.- Definition Classes
- DefaultXmlReaders
- implicit val intReader: XmlReader[Int]
XmlReader that gets the text of a single node as an int
XmlReader that gets the text of a single node as an int
- Definition Classes
- DefaultXmlReaders
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def label[A](name: String)(implicit reader: XmlReader[A]): XmlReader[A]
An XmlReader that extracts Nodes with a tag label of
nameand then appliesreader.An XmlReader that extracts Nodes with a tag label of
nameand then appliesreader.- Definition Classes
- DefaultXmlReaders
- implicit val longReader: XmlReader[Long]
XmlReader that gets the text of a single node as a long
XmlReader that gets the text of a single node as a long
- Definition Classes
- DefaultXmlReaders
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- implicit val nodeReader: XmlReader[Node]
XmlReader that matches exactly one XML node.
XmlReader that matches exactly one XML node.
If the input NodeSeq is empty, return
ParseFailure(EmptyError()), If the input NodeSeq contains multiple nodes returnParseFailure(MultipleMatchesError()).- Definition Classes
- DefaultXmlReaders
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def nth[T](n: Int)(implicit reader: XmlReader[T]): XmlReader[T]
An XmlReader that extracts the nth node of the NodeSeq
An XmlReader that extracts the nth node of the NodeSeq
- Definition Classes
- DefaultXmlReaders
- def of[A](implicit r: XmlReader[A]): XmlReader[A]
Get an implicit XmlReader for a type
- implicit def optionReader[T](implicit reader: XmlReader[T]): XmlReader[Option[T]]
Implicit XmlReader for an Option.
Implicit XmlReader for an Option. This XmlReader will always succeed. If reader succeeds, the XmlReader will obtain a
Some, otherwise it will be None- Definition Classes
- DefaultXmlReaders
- def pure[A](a: => A): XmlReader[A]
Wrap a value in an XmlReader.
Wrap a value in an XmlReader.
- returns
An XmlReader that always succeeds with
a
- Definition Classes
- DefaultXmlReaders
- def seq[A](implicit reader: XmlReader[A]): XmlReader[Seq[A]]
Read each node in the NodeSeq with reader, and succeeds with a PartialParseSuccess if any of the elements fails.
Read each node in the NodeSeq with reader, and succeeds with a PartialParseSuccess if any of the elements fails.
Use strictReadSeq if you want to fail on nodes that don't parse
- Definition Classes
- DefaultXmlReaders
- val spaceDelimitedArray: XmlReader[Array[String]]
An XmlReader for extracting space delimited lists of values as an Array of strings.
An XmlReader for extracting space delimited lists of values as an Array of strings.
- Definition Classes
- DefaultXmlReaders
- def strictReadSeq[A](implicit reader: XmlReader[A]): XmlReader[Seq[A]]
Like seq but fail if any nodes fail the reader.
Like seq but fail if any nodes fail the reader.
- Definition Classes
- DefaultXmlReaders
- implicit val stringReader: XmlReader[String]
XmlReader matches the text of a single node.
XmlReader matches the text of a single node.
- Definition Classes
- DefaultXmlReaders
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- implicit object algebra extends Applicative[XmlReader]