scala.xml.parsing

NoBindingFactoryAdapter

class NoBindingFactoryAdapter extends FactoryAdapter with NodeFactory[Elem]

nobinding adaptor providing callbacks to parser to create elements. implements hash-consing

Inherits

  1. NodeFactory
  2. FactoryAdapter
  3. XMLLoader
  4. DefaultHandler
  5. ErrorHandler
  6. ContentHandler
  7. DTDHandler
  8. EntityResolver
  9. AnyRef
  10. Any

Value Members

  1. def adapter: FactoryAdapter

  2. val attribStack: Stack[MetaData]

  3. val buffer: StringBuilder

  4. val cache: HashMap[Int, List[Elem]]

  5. var capture: Boolean

  6. def captureText(): Unit

    captures text, possibly normalizing whitespace

    captures text, possibly normalizing whitespace

    definition classes: FactoryAdapter
  7. def characters(ch: Array[Char], offset: Int, length: Int): Unit

    Characters

    Characters.

    ch
    offset
    length
    definition classes: FactoryAdapter ⇐ DefaultHandler ⇐ ContentHandler
  8. def createNode(pre: String, label: String, attrs: MetaData, scope: NamespaceBinding, children: List[Node]): Elem

    From FactoryAdapter

    From FactoryAdapter. Creates a node. never creates the same node twice, using hash-consing. @return a new XML element.

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

    Creates a processing instruction

    Creates a processing instruction.

  10. def createText(text: String): Text

    Creates a text node

    Creates a text node. @param text

  11. var curTag: String

  12. def endDocument(): Unit

  13. def endElement(uri: String, _localName: String, qname: String): Unit

    End element

    End element.

    uri
    qname
    definition classes: FactoryAdapter ⇐ DefaultHandler ⇐ ContentHandler
  14. def endPrefixMapping(arg0: String): Unit

  15. def eqElements(ch1: Seq[Node], ch2: Seq[Node]): Boolean

  16. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
  17. def error(arg0: SAXParseException): Unit

  18. def fatalError(arg0: SAXParseException): Unit

  19. val hStack: Stack[Node]

  20. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
  21. def ignorableWhitespace(arg0: Array[Char], arg1: Int, arg2: Int): Unit

  22. val ignoreComments: Boolean

  23. val ignoreProcInstr: Boolean

  24. def load(source: InputSource): Node

  25. def load(sysID: String): Node

  26. def load(reader: Reader): Node

  27. def load(is: InputStream): Node

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

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

    definition classes: XMLLoader
  28. def loadFile(name: String): Node

  29. def loadFile(fd: FileDescriptor): Node

  30. 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
  31. def loadString(string: String): Node

    Loads XML from the given String

    Loads XML from the given String.

    definition classes: XMLLoader
  32. 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
  33. def makeComment(s: String): Seq[Comment]

  34. def makeNode(pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): Elem

  35. def makeProcInstr(t: String, s: String): Seq[ProcInstr]

  36. def makeText(s: String): Text

  37. def nodeContainsText(label: String): Boolean

    True

    True. Every XML node may contain text that the application needs @return true if element named localName contains text.

  38. def nodeEquals(n: Node, pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): Boolean

  39. val normalizeWhitespace: Boolean

  40. def notationDecl(arg0: String, arg1: String, arg2: String): Unit

  41. def parser: SAXParser

  42. def processingInstruction(target: String, data: String): Unit

    Processing instruction

    Processing instruction.

    definition classes: FactoryAdapter ⇐ DefaultHandler ⇐ ContentHandler
  43. def resolveEntity(arg0: String, arg1: String): InputSource

  44. var rootElem: Node

  45. var scopeStack: Stack[NamespaceBinding]

  46. def setDocumentLocator(arg0: Locator): Unit

  47. def skippedEntity(arg0: String): Unit

  48. def startDocument(): Unit

  49. def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit

  50. def startPrefixMapping(arg0: String, arg1: String): Unit

  51. val tagStack: Stack[String]

  52. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: AnyRef ⇐ Any
  53. def unparsedEntityDecl(arg0: String, arg1: String, arg2: String, arg3: String): Unit

  54. def warning(arg0: SAXParseException): Unit

Instance constructors

  1. new NoBindingFactoryAdapter()