in scala/xml
class Elem
-
case class Elem(namespace$$: String, label$$: String, attributes: AttributeSeq, child: Node*)
- extends Node
- with ScalaObject
- with CaseClass
-
The case class
Elem
implements the Node trait,
providing an immutable data object representing an XML element.
- Author:
-
Burak Emir
- Parameters:
namespace
-
the namespace code as assigned by NamespaceRegistry
label
-
the element name
attribute
-
the attribute map
child
-
the children of this node
Method Summary
|
final
|
def %(attrs: Seq[Attribute]): Elem
Return a new element with updated attributes
|
final
|
def %(attr: Attribute): Elem
Return a new symbol with updated attribute
|
final
|
def label: String
label of this node.
|
final
|
def namespace: String
the namespace of this node
|
Methods inherited from java/lang/Object-class
|
clone, eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait |
attributes
val attributes: AttributeSeq
-
attribute axis - all attributes of this node, in order defined by attrib
child
val child: Seq[Node]
-
child axis (all children of this node)
namespaceIntern
final val namespaceIntern: String
labelIntern
final val labelIntern: String
namespace
final def namespace: String
-
the namespace of this node
label
final def label: String
-
label of this node. I.e. "foo" for <foo/>)
%
final def %(attrs: Seq[Attribute]): Elem
-
Return a new element with updated attributes
- Parameters:
attrs
-
- Returns:
-
a new symbol with updated attributes
%
final def %(attr: Attribute): Elem
-
Return a new symbol with updated attribute
- Parameters:
attr
-
- Returns:
-
a new symbol with updated attribute