| // Generated by CoffeeScript 1.12.7 | |
| (function() { | |
| var XMLDTDNotation, XMLNode, | |
| extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | |
| hasProp = {}.hasOwnProperty; | |
| XMLNode = require('./XMLNode'); | |
| module.exports = XMLDTDNotation = (function(superClass) { | |
| extend(XMLDTDNotation, superClass); | |
| function XMLDTDNotation(parent, name, value) { | |
| XMLDTDNotation.__super__.constructor.call(this, parent); | |
| if (name == null) { | |
| throw new Error("Missing DTD notation name. " + this.debugInfo(name)); | |
| } | |
| if (!value.pubID && !value.sysID) { | |
| throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(name)); | |
| } | |
| this.name = this.stringify.eleName(name); | |
| if (value.pubID != null) { | |
| this.pubID = this.stringify.dtdPubID(value.pubID); | |
| } | |
| if (value.sysID != null) { | |
| this.sysID = this.stringify.dtdSysID(value.sysID); | |
| } | |
| } | |
| XMLDTDNotation.prototype.toString = function(options) { | |
| return this.options.writer.set(options).dtdNotation(this); | |
| }; | |
| return XMLDTDNotation; | |
| })(XMLNode); | |
| }).call(this); | |
Xet Storage Details
- Size:
- 1.38 kB
- Xet hash:
- 0df6b63e02a6c1d5ff21e8b6382945ea4d58149ad2e1d55d81b45a82f0d4da6f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.