All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.xml.parsing.DefaultMarkupHandler.scala Maven / Gradle / Ivy

The newest version!
/*
 * Scala (https://www.scala-lang.org)
 *
 * Copyright EPFL and Lightbend, Inc.
 *
 * Licensed under Apache License 2.0
 * (http://www.apache.org/licenses/LICENSE-2.0).
 *
 * See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.
 */

package scala
package xml
package parsing

/** Default implementation of markup handler always returns `NodeSeq.Empty` */
abstract class DefaultMarkupHandler extends MarkupHandler {

  override def elem(pos: Int, pre: String, label: String, attrs: MetaData,
           scope: NamespaceBinding, empty: Boolean, args: NodeSeq): NodeSeq = NodeSeq.Empty

  override def procInstr(pos: Int, target: String, txt: String): NodeSeq = NodeSeq.Empty

  override def comment(pos: Int, comment: String): NodeSeq = NodeSeq.Empty

  override def entityRef(pos: Int, n: String): NodeSeq = NodeSeq.Empty

  override def text(pos: Int, txt: String): NodeSeq = NodeSeq.Empty
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy