in scala/xml/parsing
class MarkupHandler

abstract class MarkupHandler[MarkupType]()
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, key: String, value: String): AttribValue
abstract def attributeCDataValue(pos: Int, str: String): AttribValue
abstract def attributeNamespaceDecl(pos: Int, uri: String): AttribValue
abstract def charData(pos: Int, txt: String): Iterable[MarkupType]
abstract def comment(pos: Int, comment: String): Iterable[MarkupType]
abstract def element(pos: Int, uri: String, label: String, attrMap1: Map[String,AttribValue], args: Buffer[MarkupType]): Iterable[MarkupType]
     be careful to copy everything from attrMap1, as it will change
abstract def entityRef(pos: Int, n: String): Iterable[MarkupType]
  def internal_endPrefixMapping(pref: Map[String,String]): Unit
  def internal_startPrefixMapping(pref: Map[String,String]): Unit
  var namespace: Map[String,String]
     mapping from prefixes to namespaces
final def namespaceDecl(aMap: Map[String,AttribValue]): Map[String,String]
     removes xmlns attributes from attr as a side effect, and returns a prefix map resulting from them
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[MarkupType]
abstract def text(pos: Int, txt: String): Iterable[MarkupType]

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

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

namespacePrefix

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

namespaceDecl

  final def namespaceDecl(aMap: Map[String,AttribValue]): Map[String,String]
removes xmlns attributes from attr as a side effect, and returns a prefix map resulting from them

attributeCDataValue

  abstract def attributeCDataValue(pos: Int, str: String): AttribValue

attributeNamespaceDecl

  abstract def attributeNamespaceDecl(pos: Int, uri: String): AttribValue

attribute

  def attribute(pos: Int, key: String, value: String): AttribValue

element

  abstract def element(pos: Int, uri: String, label: String, attrMap1: Map[String,AttribValue], args: Buffer[MarkupType]): Iterable[MarkupType]
be careful to copy everything from attrMap1, as it will change
Parameters:
attrMap1 - the attribute map.

charData

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

procInstr

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

comment

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

entityRef

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

text

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

internal_startPrefixMapping

  def internal_startPrefixMapping(pref: Map[String,String]): Unit

internal_endPrefixMapping

  def internal_endPrefixMapping(pref: Map[String,String]): Unit