in scala/xml
object AttributeSeq

object AttributeSeq
extends Object
with ScalaObject

Field Summary
final val Empty: AttributeSeq

Method Summary
final def fromAttrs(as: Attribute*): AttributeSeq
     construct from sequence of Attribute.
final def fromAttrs(ns: String, as: Attribute*): AttributeSeq
     construct from sequence of Attribute, fixing namespaces to ns Each Attribute with an empty namespace will get the namespace ns.
final def fromMap(as: Map[Tuple2[String,String],String]): AttributeSeq
     construct an attribute sequence from a map
final def fromMap(ns: String, as: Map[Tuple2[String,String],String]): AttributeSeq
     construct from a map, fixing namespacePs to ns each Attribute with an empty namespace will get the namespace ns.

Field Detail

Empty

  final val Empty: AttributeSeq
Method Detail

fromMap

  final def fromMap(as: Map[Tuple2[String,String],String]): AttributeSeq
construct an attribute sequence from a map
Parameters:
as - a map from Pair(uri,key) to value

fromMap

  final def fromMap(ns: String, as: Map[Tuple2[String,String],String]): AttributeSeq
construct from a map, fixing namespacePs to ns each Attribute with an empty namespace will get the namespace ns.
Parameters:
ns - the namespace to use instead of the empty one
as - a map from Pair(uri,key) to value

fromAttrs

  final def fromAttrs(as: Attribute*): AttributeSeq
construct from sequence of Attribute.
Parameters:
as - any sequence of attributes a1,a2,...

fromAttrs

  final def fromAttrs(ns: String, as: Attribute*): AttributeSeq
construct from sequence of Attribute, fixing namespaces to ns Each Attribute with an empty namespace will get the namespace ns.
Parameters:
ns - the namespace to use instead of the empty one
as - any sequence of attributes a1,a2,...