Packages

c

scala.xml.parsing

FactoryAdapter

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.

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FactoryAdapter
  2. XMLLoader
  3. DefaultHandler2
  4. EntityResolver2
  5. DeclHandler
  6. LexicalHandler
  7. DefaultHandler
  8. ErrorHandler
  9. ContentHandler
  10. DTDHandler
  11. EntityResolver
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FactoryAdapter()

Abstract Value Members

  1. abstract def createComment(characters: String): collection.Seq[Comment]

    creates a new comment node.

  2. 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.

  3. abstract def createPCData(text: String): PCData

    creates a PCData node.

    creates a PCData node.

    returns

    a new PCData node.

  4. abstract def createProcInstr(target: String, data: String): collection.Seq[ProcInstr]

    creates a new processing instruction node.

  5. abstract def createText(text: String): Text

    creates a Text node.

    creates a Text node.

    returns

    a new Text node.

  6. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def adapter: FactoryAdapter
    Definition Classes
    XMLLoader
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. 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

  7. def attributeDecl(arg0: String, arg1: String, arg2: String, arg3: String, arg4: String): Unit
    Definition Classes
    DefaultHandler2 → DeclHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  8. val buffer: StringBuilder
  9. var capture: Boolean
  10. def captureText(): Unit

    Captures text or cdata.

  11. 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
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. def comment(ch: Array[Char], start: Int, length: Int): Unit

    Comment.

    Comment.

    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  14. var curTag: String
  15. def elementDecl(arg0: String, arg1: String): Unit
    Definition Classes
    DefaultHandler2 → DeclHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  16. def endCDATA(): Unit

    End of a CDATA section.

    End of a CDATA section.

    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  17. def endDTD(): Unit
    Definition Classes
    DefaultHandler2 → LexicalHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  18. def endDocument(): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  19. 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 ..

  20. def endEntity(arg0: String): Unit
    Definition Classes
    DefaultHandler2 → LexicalHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  21. def endPrefixMapping(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  22. var epilogue: List[Node]
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. def error(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  26. def externalEntityDecl(arg0: String, arg1: String, arg2: String): Unit
    Definition Classes
    DefaultHandler2 → DeclHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  27. def fatalError(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  28. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. 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] )
  31. 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

  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  34. def internalEntityDecl(arg0: String, arg1: String): Unit
    Definition Classes
    DefaultHandler2 → DeclHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def load(url: URL): Node
    Definition Classes
    XMLLoader
  37. def load(source: InputSource): Node
    Definition Classes
    XMLLoader
  38. def load(sysID: String): Node
    Definition Classes
    XMLLoader
  39. def load(reader: Reader): Node
    Definition Classes
    XMLLoader
  40. 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
  41. def loadFile(name: String): Node
    Definition Classes
    XMLLoader
  42. def loadFile(fd: FileDescriptor): Node
    Definition Classes
    XMLLoader
  43. 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
  44. def loadFileNodes(name: String): Seq[Node]
    Definition Classes
    XMLLoader
  45. def loadFileNodes(fd: FileDescriptor): Seq[Node]
    Definition Classes
    XMLLoader
  46. def loadFileNodes(file: File): 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
  47. def loadNodes(url: URL): Seq[Node]
    Definition Classes
    XMLLoader
  48. def loadNodes(source: InputSource): Seq[Node]
    Definition Classes
    XMLLoader
  49. def loadNodes(sysID: String): Seq[Node]
    Definition Classes
    XMLLoader
  50. def loadNodes(reader: Reader): Seq[Node]
    Definition Classes
    XMLLoader
  51. def loadNodes(is: InputStream): Seq[Node]
    Definition Classes
    XMLLoader
  52. def loadString(string: String): Node

    Loads XML from the given String.

    Loads XML from the given String.

    Definition Classes
    XMLLoader
  53. def loadStringNodes(string: String): Seq[Node]
    Definition Classes
    XMLLoader
  54. 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
  55. def loadXMLNodes(source: InputSource, parser: SAXParser): Seq[Node]
    Definition Classes
    XMLLoader
  56. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  57. val normalizeWhitespace: Boolean
  58. def notationDecl(arg0: String, arg1: String, arg2: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  59. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  60. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  61. def parser: SAXParser
    Definition Classes
    XMLLoader
  62. def processingInstruction(target: String, data: String): Unit

    Processing instruction.

    Processing instruction.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  63. var prolog: List[Node]
  64. 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] )
  65. 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] )
  66. var rootElem: Node
  67. var scopeStack: List[NamespaceBinding]

    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

  68. def setDocumentLocator(arg0: Locator): Unit
    Definition Classes
    DefaultHandler → ContentHandler
  69. def skippedEntity(arg0: String): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  70. def startCDATA(): Unit

    Start of a CDATA section.

    Start of a CDATA section.

    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  71. def startDTD(arg0: String, arg1: String, arg2: String): Unit
    Definition Classes
    DefaultHandler2 → LexicalHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  72. def startDocument(): Unit
    Definition Classes
    DefaultHandler → ContentHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  73. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  74. def startEntity(arg0: String): Unit
    Definition Classes
    DefaultHandler2 → LexicalHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  75. def startPrefixMapping(prefix: String, uri: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  76. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  77. 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

  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. def unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit
    Definition Classes
    DefaultHandler → DTDHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )
  80. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  83. def warning(arg0: org.xml.sax.SAXParseException): Unit
    Definition Classes
    DefaultHandler → ErrorHandler
    Annotations
    @throws( classOf[org.xml.sax.SAXException] )

Inherited from XMLLoader[Node]

Inherited from DefaultHandler2

Inherited from EntityResolver2

Inherited from DeclHandler

Inherited from LexicalHandler

Inherited from DefaultHandler

Inherited from ErrorHandler

Inherited from ContentHandler

Inherited from DTDHandler

Inherited from AnyRef

Inherited from Any

Ungrouped