(parent, name, value)
| 30434 | extend(XMLDTDNotation, superClass); |
| 30435 | |
| 30436 | function XMLDTDNotation(parent, name, value) { |
| 30437 | XMLDTDNotation.__super__.constructor.call(this, parent); |
| 30438 | if (name == null) { |
| 30439 | throw new Error("Missing DTD notation name. " + this.debugInfo(name)); |
| 30440 | } |
| 30441 | if (!value.pubID && !value.sysID) { |
| 30442 | throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(name)); |
| 30443 | } |
| 30444 | this.name = this.stringify.eleName(name); |
| 30445 | if (value.pubID != null) { |
| 30446 | this.pubID = this.stringify.dtdPubID(value.pubID); |
| 30447 | } |
| 30448 | if (value.sysID != null) { |
| 30449 | this.sysID = this.stringify.dtdSysID(value.sysID); |
| 30450 | } |
| 30451 | } |
| 30452 | |
| 30453 | XMLDTDNotation.prototype.toString = function(options) { |
| 30454 | return this.options.writer.set(options).dtdNotation(this); |
nothing calls this directly
no outgoing calls
no test coverage detected