scala.xml

class Elem

[source: scala/xml/Elem.scala]

@serializable

class Elem(val override prefix : java.lang.String, val label : java.lang.String, val override attributes : MetaData, val override scope : NamespaceBinding, val child : Node*)
extends Node
Method Summary
final def % (updates : MetaData) : Elem
Returns a new element with updated attributes, resolving namespace uris from this element's scope. See MetaData.update for details.
override def hashCode : Int
override def text : java.lang.String
Returns concatenation of text(n) for each child n.
Methods inherited from Node
namespace, getNamespace, attribute, attribute, descendant, descendant_or_self, equals, theSeq, toString, toString, nameToString, xmlType
Methods inherited from NodeSeq
length, elements, apply, apply, \, \\
Methods inherited from Seq
lengthCompare, size, isEmpty, concat, last, lastOption, headOption, ++, isDefinedAt, lastIndexOf, map, flatMap, filter, take, drop, slice, takeWhile, dropWhile, reverse, contains, subseq, toArray, projection, equalsWith, startsWith, endsWith, indexOf, containsSlice
Methods inherited from Collection
stringPrefix
Methods inherited from Iterable
partition, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toStream, mkString, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def hashCode : Int

Returns a hashcode. The default implementation here calls only super.hashcode (which is the same as for objects). A more useful implementation can be invoked by calling Utility.hashCode(pre, label, attributes.hashCode(), child).

Overrides
Node.hashCode

final def %(updates : MetaData) : Elem
Returns a new element with updated attributes, resolving namespace uris from this element's scope. See MetaData.update for details.
Parameters
updates - MetaData with new and updated attributes
Returns
a new symbol with updated attributes

override def text : java.lang.String
Returns concatenation of text(n) for each child n.
Overrides
Node.text