in scala/xml
class EntityRef

case class EntityRef(entityName: String)
extends SpecialNode
with ScalaObject
with CaseClass

an XML node for text (PCDATA). Used in both non-bound and bound XML representations
Author:
Burak Emir
Parameters:
text - the text contained in this node

Field Summary
  val entityName: String

Method Summary
final override def equals(x: Any): Boolean
     structural equality
override def hashCode(): Int
     projection function.
  def label: String
     the constant "#ENTITY"
final override def toString(): String
     returns text, with some characters escaped according to XML spec

Methods inherited from java/lang/Object-class
clone, eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/CaseClass-class
caseArity, caseElement

Methods inherited from scala/Iterable-class
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/Seq-class
copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, stringPrefix, subseq, take, toList

Methods inherited from scala/xml/Node-class
attribute, descendant, descendant_or_self, theSeq

Methods inherited from scala/xml/NodeSeq-class
\, \\, apply, asList, elements, filter, flatMap, length, map

Methods inherited from scala/xml/SpecialNode-class
attributes, child, namespace

Field Detail

entityName

  val entityName: String
Method Detail

label

  def label: String
the constant "#ENTITY"

equals

  final override def equals(x: Any): Boolean
structural equality

hashCode

  override def hashCode(): Int
projection function. Similar to XPath, use this \\ 'foo to filter all nodes labelled with "foo" from the descendant_or_self axis. The document order is preserved. def \\( that:String ): NodeSeq = { val z = this.descendant_or_self; new NodeSeq( that match { case "_" => z case _ => z.filter( x => x.label == that ); }) }

toString

  final override def toString(): String
returns text, with some characters escaped according to XML spec