scala.xml

HasKeyValue

class HasKeyValue 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
 }

Inherits

  1. AnyRef
  2. Any

Value Members

  1. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  2. def hashCode(): Int

    Returns a hash code value for the object

  3. def toString(): String

    Returns a string representation of the object

  4. def unapplySeq(x: MetaData): Option[Seq[Node]]

Instance constructors

  1. new HasKeyValue(key: String)

  2. new HasKeyValue()