Returns Declarations(this.map ++ declarations.map)
Returns Declarations(this.map -- prefixes)
Returns true if this Declarations is empty.
Returns true if this Declarations is empty. Faster than comparing this Declarations against the empty Declarations.
Returns an adapted copy of this Declarations, but retaining only the default namespace, if any
Returns an adapted copy of this Declarations, but retaining only the undeclarations, if any
Returns true if this is a sub-declarations of the given parameter Declarations
.
Returns true if this is a sub-declarations of the given parameter Declarations
. A Declarations
is considered sub-declarations of itself.
Returns true if this is a super-declarations of the given parameter Declarations
.
Returns true if this is a super-declarations of the given parameter Declarations
. A Declarations
is considered super-declarations of itself.
Creates a String
representation of this Declarations
, as it is shown in an XML element
Returns an adapted copy of this Declarations, but without the default namespace, if any
Returns an adapted copy of this Declarations, but without any undeclarations, if any
Namespace declarations (and undeclarations), typically at the level of one element.
The Declarations is backed by a map from prefixes (or the empty string for the default namespace) to namespace URIs (or the empty string). If the mapped value is the empty string, it is an undeclaration.
This class does not depend on Scopes.