in scala/xml/nobinding
class NoBindingFactoryAdapter

class NoBindingFactoryAdapter()
extends FactoryAdapter
with ScalaObject

nobinding adaptor providing callbacks to parser to create elements. implements hash-consing

Field Summary
  type Elem
  val cache: HashMap[Int,Elem]

Method Summary
  def createNode(uri: String, label: String, attrs: HashMap[Tuple2[String,String],String], children: List[Node]): Elem
     creates a node.
  def createText(text: String): Text
     creates a text node
  def getDefaultNamespace(it: Iterator[Tuple2[String,String]]): String
override def loadXML(source: org.xml.sax.InputSource): Elem
     loads an XML document, returning a Symbol node.
  def nodeContainsText(label: String): Boolean
     returns true.

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/xml/FactoryAdapter-class
attribStack, buffer, capture, captureText, characters, curTag, endElement, error, fatalError, hStack, load, load, load, loadFile, loadFile, loadFile, normalizeWhitespace, printError, rootElem, startElement, tagStack, warning

Field Detail

Elem

  type Elem = Elem

cache

  val cache: HashMap[Int,Elem]
Method Detail

nodeContainsText

  def nodeContainsText(label: String): Boolean
returns true. Every XML node may contain text that the application needs

createNode

  def createNode(uri: String, label: String, attrs: HashMap[Tuple2[String,String],String], children: List[Node]): Elem
creates a node. never creates the same node twice, using hash-consing

createText

  def createText(text: String): Text
creates a text node

loadXML

  override def loadXML(source: org.xml.sax.InputSource): Elem
loads an XML document, returning a Symbol node.

getDefaultNamespace

  def getDefaultNamespace(it: Iterator[Tuple2[String,String]]): String