com.codecommit

antixml

package antixml

Base package for the Anti-XML framework. Note that importing this package brings in a number of implicit conversions. Specifically:

Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class Attributes extends Map[QName, String] with MapLike[QName, String, Attributes]

    A special implementation of scala.collection.Map[QName, String] with nice overloading and some implicit magic designed for use containing element attributes in Elem.

  2. case class CDATA (text: String) extends Node with Product

    A node containing a single string, representing unescaped character data in the XML tree.

  3. trait CanBuildFromWithZipper [-From, -Elem, To] extends CanBuildFrom[From, Elem, To]

    An extension of scala.collection.generic.CanBuildFrom with functionality required to generate zippers (during selection).

  4. class Converter [A] extends AnyRef

    Pimp container for the explicit conversions into Anti-XML types.

  5. case class Elem (prefix: Option[String], name: String, attrs: Attributes, scope: Map[String, String], children: Group[Node]) extends Node with Selectable[Elem] with Product

    An XML element consisting of an optional namespace prefix, a name (or identifier), a set of attributes, a namespace prefix scope (mapping of prefixes to namespace URIs), and a sequence of child nodes.

  6. case class EntityRef (entity: String) extends Node with Product

    A node representing an entity reference.

  7. class Group [+A <: Node] extends IndexedSeq[A] with IndexedSeqLike[A, Group[A]] with Selectable[A]

    Represents a collection of arbitrary nodes (Node)).

  8. trait Node extends AnyRef

    Root of the Node ADT, representing the different types of supported XML nodes which may appear in an XML fragment.

  9. class NodeSeqSAXHandler extends DefaultHandler2

    Defines a SAX2 handler which produces an instance of Group[Elem] as a result.

  10. case class ProcInstr (target: String, data: String) extends Node with Product

    A processing instruction consisting of a target and some data.

  11. case class QName (prefix: Option[String], name: String) extends Product

  12. class SAXParser extends XMLParser

    An XML parser build on top of org.w3c.sax.

  13. trait Selectable [+A <: Node] extends AnyRef

  14. trait Selector [+A] extends PartialFunction[Node, A]

  15. class StAXParser extends XMLParser

    An XML parser build on top of javax.xml.stream.

  16. case class Text (text: String) extends Node with Product

    A node containing a single string, representing character data in the XML tree.

  17. trait XMLConvertable [-A, +B] extends AnyRef

    Typeclass definition for conversions used by the Converter pimp.

  18. trait XMLParser extends AnyRef

    A trait for objects which construct antixml from XML sources.

  19. class XMLSerializer extends AnyRef

  20. trait Zipper [+A <: Node] extends Group[A] with ScalaCompat

Value Members

  1. val * : Selector[Node]

    Wildcard selector which passes all nodes unmodified.

    Wildcard selector which passes all nodes unmodified. This is analogous to the "_" selector syntax in scala.xml. For example: ns \ * \ "name"

    definition classes: root
  2. object Attributes extends AnyRef

    Factory companion for the Attributes specializedMap.

  3. object CanBuildFromWithZipper extends AnyRef

    Serves as a simple container for the implicit lifting of scala.collection.generic.CanBuildFrom to CanBuildFromWithZipper.

  4. object Elem extends (Option[String], String, Attributes, Map[String, String], Group[Node]) ⇒ Elem

  5. object Group extends AnyRef

    Factory singleton for Group.

  6. object QName extends (Option[String], String) ⇒ QName

  7. object Selector extends AnyRef

  8. object XML extends StAXParser

    The default XML parser instance for the Anti-XML framework.

  9. object XMLConvertable extends SecondPrecedenceConvertables

    Contains the built-in explicit conversions into Anti-XML.

  10. object XMLSerializer extends AnyRef

  11. implicit def nodeSeqToConverter [A] (a: A) : Converter[A]

    Pimps the anti method onto any object for which there exists a conversion into Anti-XML.

    Pimps the anti method onto any object for which there exists a conversion into Anti-XML. Note that this conversion is an implicit value, statically enforced and thus shouldn't be the source of any collision issues. It should actually be possible to have another implicit conversion in scope which pimps the anti method without seeing conflicts.

    attributes: implicit
    definition classes: root
      see also:
    1. XMLConvertable

  12. implicit def stringToSelector (name: String) : Selector[Elem]

    Implicitly lifts a scala.String into an instance of Selectorwhich can then be passed to the appropriate methods on Group.

    Implicitly lifts a scala.String into an instance of Selectorwhich can then be passed to the appropriate methods on Group. For example: ns \ "name"

    attributes: implicit
    definition classes: root
  13. implicit def stringTupleToQNameTuple (pair: (String, String)) : (QName, String)

    attributes: implicit
    definition classes: root
  14. implicit def symbolToSelector (sym: Symbol) : Selector[Elem]

    Implicitly lifts a scala.Symbol into an instance of Selectorwhich can then be passed to the appropriate methods on Group.

    Implicitly lifts a scala.Symbol into an instance of Selectorwhich can then be passed to the appropriate methods on Group. For example: ns \ 'name

    attributes: implicit
    definition classes: root
  15. val text : Selector[String]

    Non-node selector which finds exclusively Textnodes and pulls out their String content.

    Non-node selector which finds exclusively Textnodes and pulls out their String content. Unlike most selectors, the result of using this selector is not a Group, but a generic scala.collection.Traversable[String]. This selector can be used to emulate the NodeSeq#text method provided by scala.xml. For example: ns \\ text mkString (this is analogous, but not quite equivalent to calling ns.text in scala.xml).

    definition classes: root