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:
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) }
- Annotations
- @deprecated
- Deprecated
(Since version 2.11) This trait will be removed.
- Version
1.0
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LoggedNodeFactory
- NodeFactory
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
create(pre: String, name: String, attrs: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
- Attributes
- protected
- Definition Classes
- NodeFactory
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
- final val CACHE: Int(1)
- final val FULL: Int(2)
- final val NONE: Int(0)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
cache: HashMap[Int, List[A]]
- Definition Classes
- NodeFactory
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
construct(hash: Int, old: List[A], pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): A
- Attributes
- protected
- Definition Classes
- NodeFactory
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
eqElements(ch1: Seq[Node], ch2: Seq[Node]): Boolean
- Definition Classes
- NodeFactory
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
ignoreComments: Boolean
- Definition Classes
- NodeFactory
-
val
ignoreProcInstr: Boolean
- Definition Classes
- NodeFactory
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(msg: String): Unit
- val logComment: Boolean
-
val
logCompressLevel: Int
0 = no logging, 1 = cache hits, 2 = detail
- val logNode: Boolean
- val logProcInstr: Boolean
- val logText: Boolean
-
def
makeComment(s: String): Seq[Comment]
- Definition Classes
- LoggedNodeFactory → NodeFactory
-
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
- LoggedNodeFactory → NodeFactory
-
def
makeProcInstr(t: String, s: String): Seq[ProcInstr]
- Definition Classes
- LoggedNodeFactory → NodeFactory
-
def
makeText(s: String): Text
- Definition Classes
- LoggedNodeFactory → NodeFactory
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nodeEquals(n: Node, pre: String, name: String, attrSeq: MetaData, scope: NamespaceBinding, children: Seq[Node]): Boolean
- Definition Classes
- NodeFactory
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )