TopScope

scala.xml.TopScope$
object TopScope extends NamespaceBinding

top level namespace scope. only contains the predefined binding for the "xml" prefix which is bound to "http://www.w3.org/XML/1998/namespace"

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equality
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
TopScope.type

Members list

Value members

Concrete methods

override def buildString(stop: NamespaceBinding): String

Attributes

Definition Classes
override def buildString(sb: StringBuilder, ignore: NamespaceBinding): Unit

Attributes

Definition Classes
override def getPrefix(uri1: String): String

Returns some prefix that is mapped to the URI.

Returns some prefix that is mapped to the URI.

Value parameters

_uri

the input URI

Attributes

Returns

the prefix that is mapped to the input URI, or null if no prefix is mapped to the URI.

Definition Classes
override def getURI(prefix1: String): String

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes

Inherited methods

override def basisForHashCode: Seq[Any]

Attributes

Definition Classes
Inherited from:
NamespaceBinding
override def canEqual(other: Any): Boolean

We insist we're only equal to other xml.Equality implementors, which heads off a lot of inconsistency up front.

We insist we're only equal to other xml.Equality implementors, which heads off a lot of inconsistency up front.

Attributes

Definition Classes
Inherited from:
NamespaceBinding
override def equals(other: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Equality -> Equals -> Any
Inherited from:
Equality
override def hashCode: Int

It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.

It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.

Attributes

Definition Classes
Equality -> Any
Inherited from:
Equality

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def strict_!=(other: Equality): Boolean

Attributes

Inherited from:
Equality
override def strict_==(other: Equality): Boolean

Attributes

Definition Classes
Inherited from:
NamespaceBinding
final def xml_!=(other: Any): Boolean

Attributes

Inherited from:
Equality
final def xml_==(other: Any): Boolean

Attributes

Inherited from:
Equality