Scala Library
|
|
scala/xml/HasKeyValue.scala
]
class
HasKeyValue(key : java.lang.String)
extends
AnyRefUse 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 }
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 |
Scala Library
|
|