NamespaceBinding

scala.xml.NamespaceBinding
case class NamespaceBinding(prefix: String, uri: String, parent: NamespaceBinding) extends Equality

The class NamespaceBinding represents namespace bindings and scopes. The binding for the default namespace is treated as a null prefix. the absent namespace is represented with the null uri. Neither prefix nor uri may be empty, which is not checked.

Attributes

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

Members list

Value members

Concrete methods

override def basisForHashCode: Seq[Any]

Attributes

Definition Classes
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
def getPrefix(uri: 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.

def getURI(prefix: String): String
override def strict_==(other: Equality): Boolean

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
Any

Inherited methods

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
final def xml_!=(other: Any): Boolean

Attributes

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

Attributes

Inherited from:
Equality