abstract class FactoryAdapter extends DefaultHandler2 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 (but processing the parser's namespace-related events if it is namespace-aware).
- Alphabetic
- By Inheritance
- FactoryAdapter
- XMLLoader
- DefaultHandler2
- EntityResolver2
- DeclHandler
- LexicalHandler
- DefaultHandler
- ErrorHandler
- ContentHandler
- DTDHandler
- EntityResolver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FactoryAdapter()
Abstract Value Members
-
abstract
def
createComment(characters: String): collection.Seq[Comment]
creates a new comment node.
-
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
createPCData(text: String): PCData
creates a PCData node.
creates a PCData node.
- returns
a new PCData node.
-
abstract
def
createProcInstr(target: String, data: String): collection.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
-
var
attribStack: List[MetaData]
List of attributes
-
def
attributeDecl(eName: String, aName: String, type: String, mode: String, value: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → DeclHandler
- val buffer: StringBuilder
- var capture: Boolean
-
def
captureText(): Unit
Captures text or cdata.
-
def
characters(ch: Array[Char], offset: Int, length: Int): Unit
Capture characters, possibly normalizing whitespace.
Capture characters, possibly normalizing whitespace.
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
comment(ch: Array[Char], start: Int, length: Int): Unit
Comment.
Comment.
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
- var curTag: String
-
def
elementDecl(name: String, model: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → DeclHandler
-
def
endCDATA(): Unit
End of a CDATA section.
End of a CDATA section.
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
-
def
endDTD(): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
-
def
endDocument(): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
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
endEntity(name: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
-
def
endPrefixMapping(prefix: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
- var epilogue: List[Node]
-
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
externalEntityDecl(name: String, publicId: String, systemId: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → DeclHandler
-
def
fatalError(arg0: org.xml.sax.SAXParseException): Unit
- Definition Classes
- DefaultHandler → ErrorHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getExternalSubset(arg0: String, arg1: String): org.xml.sax.InputSource
- Definition Classes
- DefaultHandler2 → EntityResolver2
- Annotations
- @throws( classOf[org.xml.sax.SAXException] ) @throws( classOf[java.io.IOException] )
-
var
hStack: List[Node]
List of elements
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
ignorableWhitespace(ch: Array[Char], offset: Int, length: Int): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
internalEntityDecl(name: String, value: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → DeclHandler
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
load(reader: Reader): Node
- Definition Classes
- XMLLoader
-
def
load(inputStream: InputStream): Node
- Definition Classes
- XMLLoader
-
def
load(sysId: String): Node
- Definition Classes
- XMLLoader
-
def
load(url: URL): Node
- Definition Classes
- XMLLoader
-
def
load(inputSource: InputSource): Node
- Definition Classes
- XMLLoader
-
def
loadDocument(inputSource: InputSource, xmlReader: XMLReader): Document
Load XML document from the inputSource using the xmlReader.
-
def
loadDocument(reader: Reader): Document
- Definition Classes
- XMLLoader
-
def
loadDocument(inputStream: InputStream): Document
- Definition Classes
- XMLLoader
-
def
loadDocument(sysId: String): Document
- Definition Classes
- XMLLoader
-
def
loadDocument(url: URL): Document
- Definition Classes
- XMLLoader
-
def
loadDocument(inputSource: InputSource): Document
Loads XML Document.
Loads XML Document.
- Definition Classes
- XMLLoader
-
def
loadFile(fileDescriptor: FileDescriptor): Node
- Definition Classes
- XMLLoader
-
def
loadFile(file: File): Node
- Definition Classes
- XMLLoader
-
def
loadFile(fileName: String): Node
- Definition Classes
- XMLLoader
-
def
loadFileDocument(fileDescriptor: FileDescriptor): Document
- Definition Classes
- XMLLoader
-
def
loadFileDocument(file: File): Document
- Definition Classes
- XMLLoader
-
def
loadFileDocument(fileName: String): Document
- Definition Classes
- XMLLoader
-
def
loadFileNodes(fileDescriptor: FileDescriptor): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadFileNodes(file: File): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadFileNodes(fileName: String): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadNodes(reader: Reader): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadNodes(inputStream: InputStream): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadNodes(sysId: String): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadNodes(url: URL): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadNodes(inputSource: InputSource): Seq[Node]
Load XML nodes, including comments and processing instructions that precede and follow the root element.
Load XML nodes, including comments and processing instructions that precede and follow the root element.
- Definition Classes
- XMLLoader
-
def
loadString(string: String): Node
- Definition Classes
- XMLLoader
-
def
loadStringDocument(string: String): Document
- Definition Classes
- XMLLoader
-
def
loadStringNodes(string: String): Seq[Node]
- Definition Classes
- XMLLoader
-
def
loadXML(inputSource: InputSource, parser: SAXParser): Node
Loads XML from the given InputSource, using the supplied parser or reader.
Loads XML from the given InputSource, using the supplied parser or reader. The methods available in scala.xml.XML use the XML parser in the JDK (unless another parser is present on the classpath).
- Definition Classes
- XMLLoader
-
def
loadXMLNodes(inputSource: InputSource, parser: SAXParser): Seq[Node]
- Definition Classes
- XMLLoader
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val normalizeWhitespace: Boolean
-
def
notationDecl(name: String, publicId: String, systemId: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → DTDHandler
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parser: SAXParser
- Definition Classes
- XMLLoader
-
def
processingInstruction(target: String, data: String): Unit
Processing instruction.
Processing instruction.
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
- var prolog: List[Node]
-
def
reader: org.xml.sax.XMLReader
- Definition Classes
- XMLLoader
-
def
resolveEntity(arg0: String, arg1: String): org.xml.sax.InputSource
- Definition Classes
- DefaultHandler2 → DefaultHandler → EntityResolver
- Annotations
- @throws( classOf[org.xml.sax.SAXException] ) @throws( classOf[java.io.IOException] )
-
def
resolveEntity(arg0: String, arg1: String, arg2: String, arg3: String): org.xml.sax.InputSource
- Definition Classes
- DefaultHandler2 → EntityResolver2
- Annotations
- @throws( classOf[org.xml.sax.SAXException] ) @throws( classOf[java.io.IOException] )
- var rootElem: Node
-
var
scopeStack: List[NamespaceBinding]
List of namespaces
-
def
setDocumentLocator(locator: Locator): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
skippedEntity(name: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
startCDATA(): Unit
Start of a CDATA section.
Start of a CDATA section.
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
-
def
startDTD(name: String, publicId: String, systemId: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
-
def
startDocument(): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
def
startEntity(name: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler2 → LexicalHandler
-
def
startPrefixMapping(prefix: String, uri: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → ContentHandler
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
var
tagStack: List[String]
List of element names
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unparsedEntityDecl(name: String, publicId: String, systemId: String, notationName: String): Unit
- Definition Classes
- FactoryAdapter → DefaultHandler → DTDHandler
-
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( ... ) @native()
-
def
warning(arg0: org.xml.sax.SAXParseException): Unit
- Definition Classes
- DefaultHandler → ErrorHandler
- Annotations
- @throws( classOf[org.xml.sax.SAXException] )