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.
- Alphabetic
- By Inheritance
- FactoryAdapter
- XMLLoader
- DefaultHandler
- ErrorHandler
- ContentHandler
- DTDHandler
- EntityResolver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FactoryAdapter()
Abstract Value Members
-
abstract
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.
-
abstract
def
createProcInstr(target: String, data: String): Seq[ProcInstr]
creates a new processing instruction node.
-
abstract
def
createText(text: String): Text
creates a Text node.
creates a Text node.
- returns
a new Text node.
-
abstract
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 Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
adapter: FactoryAdapter
- Definition Classes
- XMLLoader
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attribStack: Stack[MetaData]
- val buffer: collection.mutable.StringBuilder
- var capture: Boolean
-
def
captureText(): Unit
captures text, possibly normalizing whitespace
-
def
characters(ch: Array[Char], offset: Int, length: Int): Unit
Characters.
Characters.
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var curTag: String
-
def
endDocument(): Unit
- Definition Classes
- DefaultHandler → ContentHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
def
endElement(uri: String, _localName: String, qname: String): Unit
End element.
End element.
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
- Exceptions thrown
org.xml.sax.SAXException
if ..
-
def
endPrefixMapping(arg0: String): Unit
- Definition Classes
- DefaultHandler → ContentHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error(arg0: org.xml.sax.SAXParseException): Unit
- Definition Classes
- DefaultHandler → ErrorHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
def
fatalError(arg0: org.xml.sax.SAXParseException): Unit
- Definition Classes
- DefaultHandler → ErrorHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val hStack: Stack[Node]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit
- Definition Classes
- DefaultHandler → ContentHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
load(url: URL): Node
- Definition Classes
- XMLLoader
-
def
load(source: InputSource): Node
- Definition Classes
- XMLLoader
-
def
load(sysID: String): Node
- Definition Classes
- XMLLoader
-
def
load(reader: Reader): Node
- Definition Classes
- 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.
- Definition Classes
- XMLLoader
-
def
loadFile(name: String): Node
- Definition Classes
- XMLLoader
-
def
loadFile(fd: FileDescriptor): Node
- Definition Classes
- 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.
- Definition Classes
- XMLLoader
-
def
loadString(string: String): Node
Loads XML from the given String.
Loads XML from the given String.
- Definition Classes
- XMLLoader
-
def
loadXML(source: InputSource, parser: SAXParser): Node
Loads XML from the given InputSource, using the supplied parser.
Loads XML from the given InputSource, using the supplied parser. The methods available in scala.xml.XML use the XML parser in the JDK.
- Definition Classes
- XMLLoader
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val normalizeWhitespace: Boolean
-
def
notationDecl(arg0: String, arg1: String, arg2: String): Unit
- Definition Classes
- DefaultHandler → DTDHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parser: SAXParser
- Definition Classes
- XMLLoader
-
def
processingInstruction(target: String, data: String): Unit
Processing instruction.
Processing instruction.
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
resolveEntity(arg0: String, arg1: String): org.xml.sax.InputSource
- Definition Classes
- DefaultHandler → EntityResolver
- Annotations
- @throws( classOf[org.xml.sax.SAXException] ) @throws( classOf[java.io.IOException] )
- var rootElem: Node
- var scopeStack: Stack[NamespaceBinding]
-
def
setDocumentLocator(arg0: Locator): Unit
- Definition Classes
- DefaultHandler → ContentHandler
-
def
skippedEntity(arg0: String): Unit
- Definition Classes
- DefaultHandler → ContentHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
def
startDocument(): Unit
- Definition Classes
- DefaultHandler → ContentHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
def
startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
startPrefixMapping(arg0: String, arg1: String): Unit
- Definition Classes
- DefaultHandler → ContentHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tagStack: Stack[String]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit
- Definition Classes
- DefaultHandler → DTDHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
warning(arg0: org.xml.sax.SAXParseException): Unit
- Definition Classes
- DefaultHandler → ErrorHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )