FactoryAdapter

abstract class FactoryAdapter extends DefaultHandler with XMLLoader[Node]

SAX adapter class, for use with Java SAX parser. Keeps track of namespace bindings, without relying on namespace handling of the underlying SAX parser.

SAX adapter class, for use with Java SAX parser. Keeps track of namespace bindings, without relying on namespace handling of the underlying SAX parser.

class DefaultHandler
trait ErrorHandler
trait ContentHandler
trait DTDHandler
trait EntityResolver
class Object
trait Matchable
class Any

Value members

Abstract methods

def createNode(pre: String, elemName: String, attribs: MetaData, scope: NamespaceBinding, chIter: List[Node]): Node

creates an new non-text(tree) node.

creates an new non-text(tree) node.

Returns

a new XML element.

def createProcInstr(target: String, data: String): Seq[ProcInstr]

creates a new processing instruction node.

creates a new processing instruction node.

def createText(text: String): Text

creates a Text node.

creates a Text node.

Returns

a new Text node.

def nodeContainsText(localName: String): Boolean

Tests if an XML element contains text.

Tests if an XML element contains text.

Returns

true if element named localName contains text.

Concrete methods

def captureText(): Unit

captures text, possibly normalizing whitespace

captures text, possibly normalizing whitespace

override def characters(ch: Array[Char], offset: Int, length: Int): Unit

Characters.

Characters.

Definition Classes
DefaultHandler -> ContentHandler
override def endElement(uri: String, _localName: String, qname: String): Unit

End element.

End element.

Throws
org.xml.sax.SAXException

if ..

Definition Classes
DefaultHandler -> ContentHandler
override def processingInstruction(target: String, data: String): Unit

Processing instruction.

Processing instruction.

Definition Classes
DefaultHandler -> ContentHandler
override def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
Definition Classes
DefaultHandler -> ContentHandler

Inherited methods

Inherited from
XMLLoader
@throws(org.xml.sax.SAXException)
def endDocument(): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def endPrefixMapping(`x$0`: String): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def error(`x$0`: SAXParseException): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def fatalError(`x$0`: SAXParseException): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def ignorableWhitespace(`x$0`: Array[Char], `x$1`: Int, `x$2`: Int): Unit
Inherited from
DefaultHandler
def load(url: URL): Node
Inherited from
XMLLoader
def load(source: InputSource): Node
Inherited from
XMLLoader
def load(sysID: String): Node
Inherited from
XMLLoader
def load(reader: Reader): Node
Inherited from
XMLLoader
def load(is: InputStream): Node

loads XML from given InputStream, Reader, sysID, InputSource, or URL.

loads XML from given InputStream, Reader, sysID, InputSource, or URL.

Inherited from
XMLLoader
def loadFile(name: String): Node
Inherited from
XMLLoader
def loadFile(fd: FileDescriptor): Node
Inherited from
XMLLoader
def loadFile(file: File): Node

Loads XML from the given file, file descriptor, or filename.

Loads XML from the given file, file descriptor, or filename.

Inherited from
XMLLoader
def loadString(string: String): Node

Loads XML from the given String.

Loads XML from the given String.

Inherited from
XMLLoader
def loadXML(source: InputSource, parser: SAXParser): Node

Loads XML from the given InputSource, using the supplied parser. The methods available in scala.xml.XML use the XML parser in the JDK.

Loads XML from the given InputSource, using the supplied parser. The methods available in scala.xml.XML use the XML parser in the JDK.

Inherited from
XMLLoader
@throws(org.xml.sax.SAXException)
def notationDecl(`x$0`: String, `x$1`: String, `x$2`: String): Unit
Inherited from
DefaultHandler
Inherited from
XMLLoader
@throws(org.xml.sax.SAXException) @throws(java.io.IOException)
def resolveEntity(`x$0`: String, `x$1`: String): InputSource
Inherited from
DefaultHandler
def setDocumentLocator(`x$0`: Locator): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def skippedEntity(`x$0`: String): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def startDocument(): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def startPrefixMapping(`x$0`: String, `x$1`: String): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def unparsedEntityDecl(`x$0`: String, `x$1`: String, `x$2`: String, `x$3`: String): Unit
Inherited from
DefaultHandler
@throws(org.xml.sax.SAXException)
def warning(`x$0`: SAXParseException): Unit
Inherited from
DefaultHandler

Concrete fields

var attribStack: List[MetaData]

List of attributes

List of attributes

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Since

2.0.0

val buffer: StringBuilder
var capture: Boolean
var curTag: String
var hStack: List[Node]

List of elements

List of elements

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Since

2.0.0

val normalizeWhitespace: Boolean

List of namespaces

List of namespaces

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Since

2.0.0

var tagStack: List[String]

List of element names

List of element names

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Since

2.0.0