UNPKG

@tripsuite/cxml

Version:

Advanced schema-aware streaming XML parser

20 lines (19 loc) 664 B
// This file is part of cxml, copyright (c) 2015-2016 BusFaster Ltd. // Released under the MIT license, see LICENSE. "use strict"; // TODO: Should extend ItemBase instead of containing it. // For now, TypeScript doesn't allow ItemBase to extend ItemContent. /** Represents a child element or attribute. */ var MemberBase = (function () { function MemberBase(Item, name) { if (Item) this.item = new Item(this); this.name = name; } MemberBase.prototype.define = function () { }; return MemberBase; }()); MemberBase.abstractFlag = 1; MemberBase.substitutedFlag = 2; MemberBase.anyFlag = 4; exports.MemberBase = MemberBase;