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

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 with Serializable

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

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

    A factory for Zipper instances.

  4. trait CanProduceZipper [-From, A <: Node, To] extends AnyRef

    A marker interface for scala.collection.mutable.CanBuildFrom instances that can be lifted into CanBuildFromWithZipper instances that operate on Node types.

  5. class Converter [A] extends AnyRef

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

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

    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.

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

    A node representing an entity reference.

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

    Represents a collection of arbitrary nodes (Node)).

  9. trait Node extends AnyRef

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

  10. class NodeSeqSAXHandler extends DefaultHandler2

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

  11. trait OptimizingSelector [+A] extends Selector[A]

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

    A processing instruction consisting of a target and some data.

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

  14. class SAXParser extends XMLParser

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

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

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

  17. class StAXParser extends XMLParser

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

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

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

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

    Typeclass definition for conversions used by the Converter pimp.

  20. trait XMLParser extends AnyRef

    A trait for objects which construct antixml from XML sources.

  21. class XMLSerializer extends AnyRef

  22. trait Zipper [+A <: Node] extends Group[A] with IndexedSeqLike[A, Zipper[A]]

    A zipper which allows deep selection.

  23. case class ZipperMergeContext (original: Node, directUpdate: IndexedSeq[(Node, Int)], lastDirectUpdate: Int, indirectUpdate: (Node, Int)) extends Product with Serializable

    Describes the parameters of a merge operation.

  24. trait ZipperMergeStrategy extends AnyRef

    Defines the merge function used to resolve conflicting updates to a node during zipper unselection.

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
    package
  2. object Attributes extends AnyRef

    Factory companion for the Attributes specialized Map.

  3. object CanBuildFromWithZipper extends AnyRef

    Different implicit implementations of CanBuildFromWithZipper.

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

  5. object Group extends AnyRef

    Factory singleton for Group.

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

  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. object Zipper extends AnyRef

  12. object ZipperMergeStrategy extends AnyRef

  13. 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
    package
    See also

    XMLConvertable

  14. implicit def stringTupleToQNameTuple (pair: (String, String)): (QName, String)

    Attributes
    implicit
    Definition Classes
    package
  15. val text : Selector[String]

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

    Non-node selector which finds exclusively Text nodes 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
    package