MCPcopy Index your code
hub / github.com/python/cpython / Entity

Class Entity

Lib/xml/dom/minidom.py:1379–1417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377 writer.write(">"+newl)
1378
1379class Entity(Identified, Node):
1380 attributes = None
1381 nodeType = Node.ENTITY_NODE
1382 nodeValue = None
1383
1384 actualEncoding = None
1385 encoding = None
1386 version = None
1387
1388 def __init__(self, name, publicId, systemId, notation):
1389 self.nodeName = name
1390 self.notationName = notation
1391 self.childNodes = NodeList()
1392 self._identified_mixin_init(publicId, systemId)
1393
1394 def _get_actualEncoding(self):
1395 return self.actualEncoding
1396
1397 def _get_encoding(self):
1398 return self.encoding
1399
1400 def _get_version(self):
1401 return self.version
1402
1403 def appendChild(self, newChild):
1404 raise xml.dom.HierarchyRequestErr(
1405 "cannot append children to an entity node")
1406
1407 def insertBefore(self, newChild, refChild):
1408 raise xml.dom.HierarchyRequestErr(
1409 "cannot insert children below an entity node")
1410
1411 def removeChild(self, oldChild):
1412 raise xml.dom.HierarchyRequestErr(
1413 "cannot remove children from an entity node")
1414
1415 def replaceChild(self, newChild, oldChild):
1416 raise xml.dom.HierarchyRequestErr(
1417 "cannot replace children of an entity node")
1418
1419class Notation(Identified, Childless, Node):
1420 nodeType = Node.NOTATION_NODE

Callers 3

cloneNodeMethod · 0.85
_create_entityMethod · 0.85
_clone_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…