Scala Library
|
|
scala/xml/Elem.scala
]
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
NodeElem
extends the Node
class,
providing an immutable data object representing an XML element.prefix -
namespace prefix (may be null, but not the empty string)label -
the element nameattribute -
the attribute mapscope -
the scope containing the namespace bindingschild -
the children of this node
Copyright 2008 Google Inc. All Rights Reserved.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 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 Sequence | |
companion |
Methods inherited from SequenceTemplate | |
lengthCompare, size, isDefinedAt, zip, zipAll, zipWithIndex, segmentLength, prefixLength, indexWhere, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, reverse, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, padTo, toSequence, indices, view, view, sortWith, findLastIndexOf, slice, equalsWith, containsSlice, projection |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from IterableTemplate | |
elements, foreach, isEmpty, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, first, firstOption, toSeq |
Methods inherited from TraversableClass | |
genericBuilder, unzip, flatten, transpose |
Methods inherited from TraversableTemplate | |
thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix |
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
override final
def
doTransform : Boolean
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)
.
updates -
MetaData with new and updated attributesoverride
def
text : java.lang.String
text(n)
for each child
n
.
Scala Library
|
|