UNPKG

salve-annos

Version:

A fork with support for documentation of Salve, a Javascript library which implements a validator able to validate an XML document on the basis of a subset of RelaxNG.

32 lines (31 loc) 771 B
/** * Class for XML Expanded Names. * @author Louis-Dominique Dubeau * @license MPL 2.0 * @copyright Mangalam Research Center for Buddhist Languages */ /** * Immutable objects modeling XML Expanded Names. */ export declare class EName { readonly ns: string; readonly name: string; /** * @param ns The namespace URI. * * @param name The local name of the entity. */ constructor(ns: string, name: string); /** * @returns A string representing the expanded name. */ toString(): string; /** * Compares two expanded names. * * @param other The other object to compare this object with. * * @returns ``true`` if this object equals the other. */ equal(other: EName): boolean; }