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

cats.xml.xpath.package.scala Maven / Gradle / Ivy

The newest version!
package cats.xml

import eu.cdevreeze.xpathparser.ast.EQName

package object xpath {
  private[xpath] object EmptySeq {
    def unapply(io: Iterable[?]): Boolean = io.isEmpty
  }

  private[xpath] object UnSeq {
    def unapplySeq(io: Iterable[?]): Option[Seq[?]] = Some(io.toSeq)
  }

  private[xpath] object EQNameEx {
    def unapply(eqn: EQName): Some[String] =
      eqn match {
        case EQName.QName(qname)            => Some(qname.localPart)
        case EQName.URIQualifiedName(ename) => Some(ename.localPart)
      }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy