class HasKeyValue

[source: scala/xml/HasKeyValue.scala]

class HasKeyValue(key : java.lang.String)
extends AnyRef

Use this class to match on (unprefixed) attribute values

  val hasName = new HasKeyValue("name")
  node match {
    case Node("foo", hasName(x), _*) => x // foo had attribute with key "name" and with value x
Burak Emir
Method Summary
def unapplySeq (x : MetaData) : Option[Seq[Node]]
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def unapplySeq(x : MetaData) : Option[Seq[Node]]