in scala/xml
class BindingFactoryAdapter

abstract class BindingFactoryAdapter()
extends FactoryAdapter
with ScalaObject
with NodeFactory[Node]

a FactoryAdapter that creates instances of classes binding XML types. DTDs imported with the dtd2scala tool all use this class as interface to the SAX XML parser, by giving concrete values for the factory maps f and g.

Field Summary
abstract val compress: Boolean
     if true, create only elements not created before
abstract val f: Map[String,(AttributeSeq,Seq[Node]) => Node]
     mapping from element names to an element constructor (constr:Seq[Node],HashMap[String,String] => Node)
abstract val g: Map[String,Boolean]
     mapping from element names to a truth value indicating whether the corresponding element may have text children
abstract val namespace: String

Method Summary
protected def create(uname: UName, attrs: AttributeSeq, children: Seq[Node]): Node
  def createNode(uri: String, elemName: String, attribs: HashMap[Tuple2[String,String],String], children: List[Node]): Node
     creates an element.
  def createText(text: String): Text
     creates PCDATA element
  var errors: Int
  def getConstructor(elemName: String): (AttributeSeq,Seq[Node]) => Node
  def nodeContainsText(name: String): Boolean
     looks up whether an element may have text children

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

Methods inherited from org/xml/sax/helpers/DefaultHandler-class
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl

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

Methods inherited from scala/ScalaObject-class
getType

Methods inherited from scala/xml/FactoryAdapter-class
attribStack, buffer, capture, captureText, characters, curTag, endElement, error, fatalError, hStack, load, load, load, loadFile, loadFile, loadFile, loadXML, normalizeWhitespace, printError, rootElem, startElement, tagStack, warning

Methods inherited from scala/xml/NodeFactory-class
cache, construct, eqElements, ignoreComments, ignoreProcInstr, makeComment, makeNode, makeProcInstr, makeText, nodeEquals

Field Detail

namespace

  abstract val namespace: String

f

  abstract val f: Map[String,(AttributeSeq,Seq[Node]) => Node]
mapping from element names to an element constructor (constr:Seq[Node],HashMap[String,String] => Node)

g

  abstract val g: Map[String,Boolean]
mapping from element names to a truth value indicating whether the corresponding element may have text children

compress

  abstract val compress: Boolean
if true, create only elements not created before
Method Detail

errors

  var errors: Int

nodeContainsText

  def nodeContainsText(name: String): Boolean
looks up whether an element may have text children

getConstructor

  def getConstructor(elemName: String): (AttributeSeq,Seq[Node]) => Node

create

  protected def create(uname: UName, attrs: AttributeSeq, children: Seq[Node]): Node

createNode

  def createNode(uri: String, elemName: String, attribs: HashMap[Tuple2[String,String],String], children: List[Node]): Node
creates an element. see also compress

createText

  def createText(text: String): Text
creates PCDATA element