in scala/xml/parsing
class MarkupHandler

abstract class MarkupHandler[A]()
extends Object
with ScalaObject
Implementing classes or objects:
class ConstructingHandler()

class that handles markup - provides callback methods to MarkupParser

Field Summary
protected val prefixStack: Stack[Map[String,String]]
     a stack of prefix namespace mappings

Method Summary
  def attribute(pos: Int, uri: String, key: String, value: String): Attribute
abstract def charData(pos: Int, txt: String): Iterable[A]
abstract def comment(pos: Int, comment: String): Iterable[A]
abstract def element(pos: Int, uri: String, label: String, attrMap1: Map[Tuple2[String,String],Attribute], args: Buffer[A]): Iterable[A]
     be careful to copy everything from attrMap1, as it will change
abstract def entityRef(pos: Int, n: String): Iterable[A]
  def internal_endPrefixMapping: Unit
final def internal_namespaceDecl(prefix: String, uri: String): Unit
     removes xmlns attributes from attr as a side effect, and returns a prefix map resulting from them
  def internal_startPrefixMapping: Unit
  var namespace: Map[String,String]
     mapping from prefixes to namespaces
final def namespacePrefix(name: String): Option[String]
     returns prefix of the qualified name if any
abstract def procInstr(pos: Int, target: String, txt: String): Iterable[A]
abstract def text(pos: Int, txt: String): Iterable[A]
  var tmpPrefix: Map[String,String]

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/ScalaObject-class
getType

Field Detail

prefixStack

  protected val prefixStack: Stack[Map[String,String]]
a stack of prefix namespace mappings
Method Detail

namespace

  var namespace: Map[String,String]
mapping from prefixes to namespaces

tmpPrefix

  var tmpPrefix: Map[String,String]

namespacePrefix

  final def namespacePrefix(name: String): Option[String]
returns prefix of the qualified name if any

internal_namespaceDecl

  final def internal_namespaceDecl(prefix: String, uri: String): Unit
removes xmlns attributes from attr as a side effect, and returns a prefix map resulting from them

attribute

  def attribute(pos: Int, uri: String, key: String, value: String): Attribute

element

  abstract def element(pos: Int, uri: String, label: String, attrMap1: Map[Tuple2[String,String],Attribute], args: Buffer[A]): Iterable[A]
be careful to copy everything from attrMap1, as it will change
Parameters:
pos - the position in the sourcefile
uri - the namespace uri
label - the tag name
attrMap1 - the attribute map, from Pair(uri,label) to target
args - the children of this element

charData

  abstract def charData(pos: Int, txt: String): Iterable[A]

procInstr

  abstract def procInstr(pos: Int, target: String, txt: String): Iterable[A]

comment

  abstract def comment(pos: Int, comment: String): Iterable[A]

entityRef

  abstract def entityRef(pos: Int, n: String): Iterable[A]

text

  abstract def text(pos: Int, txt: String): Iterable[A]

internal_startPrefixMapping

  def internal_startPrefixMapping: Unit

internal_endPrefixMapping

  def internal_endPrefixMapping: Unit