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 (but processing the parser's namespace-related events if it is namespace-aware).

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(eName: String, aName: String, type: String, mode: String, value: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → DeclHandler
  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(name: String, model: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → DeclHandler
  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
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  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(name: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  21. def endPrefixMapping(prefix: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  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(name: String, publicId: String, systemId: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → DeclHandler
  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(ch: Array[Char], offset: Int, length: Int): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  34. def internalEntityDecl(name: String, value: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → DeclHandler
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def load(reader: Reader): Node
    Definition Classes
    XMLLoader
  37. def load(inputStream: InputStream): Node
    Definition Classes
    XMLLoader
  38. def load(sysId: String): Node
    Definition Classes
    XMLLoader
  39. def load(url: URL): Node
    Definition Classes
    XMLLoader
  40. def load(inputSource: InputSource): Node
    Definition Classes
    XMLLoader
  41. def loadDocument(inputSource: InputSource, xmlReader: XMLReader): Document

    Load XML document from the inputSource using the xmlReader.

  42. def loadDocument(reader: Reader): Document
    Definition Classes
    XMLLoader
  43. def loadDocument(inputStream: InputStream): Document
    Definition Classes
    XMLLoader
  44. def loadDocument(sysId: String): Document
    Definition Classes
    XMLLoader
  45. def loadDocument(url: URL): Document
    Definition Classes
    XMLLoader
  46. def loadDocument(inputSource: InputSource): Document

    Loads XML Document.

    Loads XML Document.

    Definition Classes
    XMLLoader
  47. def loadFile(fileDescriptor: FileDescriptor): Node
    Definition Classes
    XMLLoader
  48. def loadFile(file: File): Node
    Definition Classes
    XMLLoader
  49. def loadFile(fileName: String): Node
    Definition Classes
    XMLLoader
  50. def loadFileDocument(fileDescriptor: FileDescriptor): Document
    Definition Classes
    XMLLoader
  51. def loadFileDocument(file: File): Document
    Definition Classes
    XMLLoader
  52. def loadFileDocument(fileName: String): Document
    Definition Classes
    XMLLoader
  53. def loadFileNodes(fileDescriptor: FileDescriptor): Seq[Node]
    Definition Classes
    XMLLoader
  54. def loadFileNodes(file: File): Seq[Node]
    Definition Classes
    XMLLoader
  55. def loadFileNodes(fileName: String): Seq[Node]
    Definition Classes
    XMLLoader
  56. def loadNodes(reader: Reader): Seq[Node]
    Definition Classes
    XMLLoader
  57. def loadNodes(inputStream: InputStream): Seq[Node]
    Definition Classes
    XMLLoader
  58. def loadNodes(sysId: String): Seq[Node]
    Definition Classes
    XMLLoader
  59. def loadNodes(url: URL): Seq[Node]
    Definition Classes
    XMLLoader
  60. 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
  61. def loadString(string: String): Node
    Definition Classes
    XMLLoader
  62. def loadStringDocument(string: String): Document
    Definition Classes
    XMLLoader
  63. def loadStringNodes(string: String): Seq[Node]
    Definition Classes
    XMLLoader
  64. 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
  65. def loadXMLNodes(inputSource: InputSource, parser: SAXParser): Seq[Node]
    Definition Classes
    XMLLoader
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. val normalizeWhitespace: Boolean
  68. def notationDecl(name: String, publicId: String, systemId: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → DTDHandler
  69. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. def parser: SAXParser
    Definition Classes
    XMLLoader
  72. def processingInstruction(target: String, data: String): Unit

    Processing instruction.

    Processing instruction.

    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  73. var prolog: List[Node]
  74. def reader: org.xml.sax.XMLReader
    Definition Classes
    XMLLoader
  75. 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] )
  76. 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] )
  77. var rootElem: Node
  78. 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

  79. def setDocumentLocator(locator: Locator): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  80. def skippedEntity(name: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  81. def startCDATA(): Unit

    Start of a CDATA section.

    Start of a CDATA section.

    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  82. def startDTD(name: String, publicId: String, systemId: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  83. def startDocument(): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  84. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  85. def startEntity(name: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler2 → LexicalHandler
  86. def startPrefixMapping(prefix: String, uri: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → ContentHandler
  87. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  88. 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

  89. def toString(): String
    Definition Classes
    AnyRef → Any
  90. def unparsedEntityDecl(name: String, publicId: String, systemId: String, notationName: String): Unit
    Definition Classes
    FactoryAdapter → DefaultHandler → DTDHandler
  91. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  94. 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