Packages

c

scala.xml

NamespaceBinding

case class NamespaceBinding(prefix: String, uri: String, parent: NamespaceBinding) extends Equality with Product with Serializable

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.

Annotations
@SerialVersionUID()
Version

1.0

Linear Supertypes
Serializable, java.io.Serializable, Product, Equality, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NamespaceBinding
  2. Serializable
  3. Serializable
  4. Product
  5. Equality
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NamespaceBinding(prefix: String, uri: String, parent: NamespaceBinding)

Value Members

  1. def basisForHashCode: Seq[Any]
    Definition Classes
    NamespaceBindingEquality
  2. def buildString(sb: StringBuilder, stop: NamespaceBinding): Unit
  3. def buildString(stop: NamespaceBinding): String
  4. 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.

    Definition Classes
    NamespaceBindingEquality → Equals
  5. def equals(other: Any): Boolean
    Definition Classes
    Equality → Equals → AnyRef → Any
  6. def getPrefix(_uri: String): String

    Returns some prefix that is mapped to the URI.

    Returns some prefix that is mapped to the URI.

    _uri

    the input URI

    returns

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

  7. def getURI(_prefix: String): String
  8. 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.

    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.

    Definition Classes
    Equality → AnyRef → Any
  9. val parent: NamespaceBinding
  10. val prefix: String
  11. def strict_!=(other: Equality): Boolean
    Definition Classes
    Equality
  12. def strict_==(other: Equality): Boolean
    Definition Classes
    NamespaceBindingEquality
  13. def toString(): String
    Definition Classes
    NamespaceBinding → AnyRef → Any
  14. val uri: String
  15. final def xml_!=(other: Any): Boolean
    Definition Classes
    Equality
  16. final def xml_==(other: Any): Boolean
    Definition Classes
    Equality