scala.xml

class Group

[source: scala/xml/Group.scala]

case class Group(val nodes : Sequence[Node])
extends Node with Product
A hack to group XML nodes in one node for output.
Author
Burak Emir
Version
1.0
Method Summary
override final def attributes : Nothing
def buildString (sb : StringBuilder) : Nothing
override def canEqual (arg0 : Any) : Boolean
An equality helper method to assist in maintaining reflexivity in the face of subtyping. For more, see http://www.artima.com/lejava/articles/equality.html
override final def child : Nothing
override def equals (x : Any) : Boolean
XXX this is ridiculous, we can't do equality like this.
override def hashCode : Int
final def label : Nothing
override final def namespace : Nothing
override def productArity : Int
return k for a product A(x_1,...,x_k)
override def productElement (arg0 : Int) : Any
for a product A(x_1,...,x_k), returns x_(n+1) for 0 <= n < k
override def productPrefix : java.lang.String
By default the empty string. Implementations may override this method in order to prepend a string prefix to the result of the toString methods.
override def theSeq : Sequence[Node]
returns a sequence consisting of only this node
Methods inherited from Product
productIterator, productElements
Methods inherited from Node
prefix, isAtom, doCollectNamespaces, doTransform, scope, getNamespace, attribute, attribute, descendant, descendant_or_self, buildString, toString, nameToString, xmlType, text
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 def theSeq : Sequence[Node]
returns a sequence consisting of only this node
Overrides
Node.theSeq

override def equals(x : Any) : Boolean
XXX this is ridiculous, we can't do equality like this.
Overrides
Node.equals

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 label : Nothing
Throws
Predef.UnsupportedOperationException - (always)
Overrides
Node.label

override final def attributes : Nothing
Throws
Predef.UnsupportedOperationException - (always)
Overrides
Node.attributes

override final def namespace : Nothing
Throws
Predef.UnsupportedOperationException - (always)
Overrides
Node.namespace

override final def child : Nothing
Throws
Predef.UnsupportedOperationException - (always)
Overrides
Node.child

def buildString(sb : StringBuilder) : Nothing
Throws
Predef.UnsupportedOperationException - (always)

override def productPrefix : java.lang.String
By default the empty string. Implementations may override this method in order to prepend a string prefix to the result of the toString methods.
Overrides
Product.productPrefix

override def productArity : Int
return k for a product A(x_1,...,x_k)
Overrides
Product.productArity

override def productElement(arg0 : Int) : Any
for a product A(x_1,...,x_k), returns x_(n+1) for 0 <= n < k
Parameters
n - the index of the element to return
Throws
IndexOutOfBoundsException -
Returns
The element n elements after the first element
Overrides
Product.productElement

override def canEqual(arg0 : Any) : Boolean
An equality helper method to assist in maintaining reflexivity in the face of subtyping. For more, see http://www.artima.com/lejava/articles/equality.html
Overrides
Product.canEqual