LoggedNodeFactory

@deprecated("This trait will be removed.", "2.11") trait LoggedNodeFactory[A <: Node] extends NodeFactory[A]

This class logs what the nodefactory is actually doing. If you want to see what happens during loading, use it like this:

This class logs what the nodefactory is actually doing. If you want to see what happens during loading, use it like this:

object testLogged extends App {
val x = new scala.xml.parsing.NoBindingFactoryAdapter
with scala.xml.factory.LoggedNodeFactory[scala.xml.Elem] {
override def log(s: String) = println(s)
}

Console.println("Start")
val doc = x.load(new java.net.URL("http://example.com/file.xml"))
Console.println("End")
Console.println(doc)
}
Authors

Burak Emir

Deprecated
trait NodeFactory[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def log(msg: String): Unit
override def makeComment(s: String): Seq[Comment]
Definition Classes
override def makeNode(pre: String, label: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): A

logged version of makeNode method

logged version of makeNode method

Definition Classes
override def makeProcInstr(t: String, s: String): Seq[ProcInstr]
Definition Classes
override def makeText(s: String): Text
Definition Classes

Inherited methods

protected def construct(hash: Int, old: List[A], pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
Inherited from
NodeFactory
protected def create(pre: String, name: String, attrs: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
Inherited from
NodeFactory
def eqElements(ch1: Seq[Node], ch2: Seq[Node]): Boolean
Inherited from
NodeFactory
def nodeEquals(n: Node, pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): Boolean
Inherited from
NodeFactory

Concrete fields

final val CACHE: 1
final val FULL: 2
final val NONE: 0
val logComment: Boolean

0 = no logging, 1 = cache hits, 2 = detail

0 = no logging, 1 = cache hits, 2 = detail

val logNode: Boolean
val logProcInstr: Boolean
val logText: Boolean

Inherited fields

val cache: HashMap[Int, List[A]]
Inherited from
NodeFactory
val ignoreComments: Boolean
Inherited from
NodeFactory
val ignoreProcInstr: Boolean
Inherited from
NodeFactory