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
The case class Elem extends the Node class, providing an immutable data object representing an XML element.
Parameters
prefix - namespace prefix (may be null, but not the empty string)
label - the element name
attribute - the attribute map
scope - the scope containing the namespace bindings
child - the children of this node Copyright 2008 Google Inc. All Rights Reserved.
Author
Burak Emir
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.
def copy (prefix : java.lang.String, label : java.lang.String, attributes : MetaData, scope : NamespaceBinding, child : Seq[Node]) : Elem
Returns a copy of this element with any supplied arguments replacing this element's value for that field.
override final def doCollectNamespaces : Boolean
The logic formerly found in typeTag$, as best I could infer it.
override final def doTransform : Boolean
override def hashCode : Int
override def text : java.lang.String
Returns concatenation of text(n) for each child n.
Methods inherited from Node
isAtom, namespace, getNamespace, attribute, attribute, descendant, descendant_or_self, equals, theSeq, buildString, toString, nameToString, xmlType
Methods inherited from NodeSeq
newBuilder, length, iterator, apply, apply, \, \\
Methods inherited from Seq
companion
Methods inherited from SeqLike
thisCollection, toCollection, lengthCompare, size, isDefinedAt, segmentLength, prefixLength, indexWhere, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, reverse, reverseMap, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, view, view, findLastIndexOf, equalsWith, containsSlice, projection
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from IterableLike
elements, foreach, forall, exists, find, isEmpty, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, first, firstOption
Methods inherited from GenericTraversableTemplate
genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override final def doCollectNamespaces : Boolean
The logic formerly found in typeTag$, as best I could infer it.
Overrides
Node.doCollectNamespaces

override final def doTransform : Boolean
Overrides
Node.doTransform

override def hashCode : Int

Returns a hashcode.

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

def copy(prefix : java.lang.String, label : java.lang.String, attributes : MetaData, scope : NamespaceBinding, child : Seq[Node]) : Elem
Returns a copy of this element with any supplied arguments replacing this element's value for that field.
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