in scala/xml
class BindingFactoryAdapter
-
abstract class BindingFactoryAdapter()
- extends FactoryAdapter
- with ScalaObject
-
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
|
|
val cache: HashMap[Int,Node]
|
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
|
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/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 |
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
cache
val cache: HashMap[Int,Node]
nodeContainsText
def nodeContainsText(name: String): Boolean
-
looks up whether an element may have text children
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