UNPKG

@tripsuite/cxml

Version:

Advanced schema-aware streaming XML parser

17 lines (16 loc) 755 B
import { ContextBase } from './ContextBase'; export declare class NamespaceBase<Context extends ContextBase<Context, Namespace>, Namespace extends NamespaceBase<Context, Namespace>> { constructor(name: string, id: number, context: Context); initFrom(other: NamespaceBase<any, any>): void; static sanitize(name: string): string; /** URI identifying the namespace (URN or URL which doesn't need to exist). */ name: string; /** Surrogate key, used internally as a unique namespace ID. */ id: number; /** Parser context that uses this namespace. */ context: Context; /** URL address where main schema file was downloaded. */ schemaUrl: string; /** Example short name for this namespace. */ short: string; }