当前位置: 首页>>代码示例>>Python>>正文


Python FtNode.FtNode类代码示例

本文整理汇总了Python中FtNode.FtNode的典型用法代码示例。如果您正苦于以下问题:Python FtNode类的具体用法?Python FtNode怎么用?Python FtNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了FtNode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, name, entities, notations, publicId, systemId):
     FtNode.__init__(self, None)
     self.__dict__['__nodeName'] = name
     self._entities = entities
     self._notations = notations
     self._publicId = publicId
     self._systemId = systemId
     #FIXME: Text repr of the entities
     self._internalSubset = ''
开发者ID:RedTea,项目名称:gaedav,代码行数:9,代码来源:DocumentType.py

示例2: __init__

 def __init__(self, doctype):
     FtNode.__init__(self, None)
     self.__dict__['__doctype'] = None
     self.__dict__['__implementation'] = implementation
     self.__dict__['__documentElement'] = None
     self.__dict__['_singleChildren'] = {Node.ELEMENT_NODE:'__documentElement',
                                         Node.DOCUMENT_TYPE_NODE:'__doctype'
                                         }
     self._4dom_setDocumentType(doctype)
开发者ID:AngusGeek,项目名称:org.aspectj,代码行数:9,代码来源:Document.py

示例3: __init__

 def __init__(self, doctype):
     FtNode.__init__(self, None)
     self.__dict__["__doctype"] = None
     self.__dict__["__implementation"] = implementation
     self.__dict__["__documentElement"] = None
     self.__dict__["_singleChildren"] = {
         Node.ELEMENT_NODE: "__documentElement",
         Node.DOCUMENT_TYPE_NODE: "__doctype",
     }
     self._4dom_setDocumentType(doctype)
开发者ID:RedTea,项目名称:gaedav,代码行数:10,代码来源:Document.py

示例4: removeChild

 def removeChild(self,oldChild):
     node = FtNode.removeChild(self, oldChild)
     if self.documentElement == node:
         self.__dict__['__documentElement'] = None
     if self.__dict__['__doctype'] == node:
         self.__dict__['__doctype'] = None
     return node
开发者ID:AngusGeek,项目名称:org.aspectj,代码行数:7,代码来源:Document.py

示例5: replaceChild

 def replaceChild(self, newChild, oldChild):
     if newChild.nodeType != Node.DOCUMENT_FRAGMENT_NODE:
         root = self.__dict__['__documentElement']
         if root in [oldChild, newChild]:
             self.__dict__['__documentElement'] = None
         else:
             raise HierarchyRequestErr()
     replaced = FtNode.replaceChild(self, newChild, oldChild)
     if newChild.nodeType == Node.ELEMENT_NODE:
         self.__dict__['__documentElement'] = newChild
         if self.__dict__['__doctype']:
             self.__dict__['__doctype']._4dom_setName(newChild.nodeName)
     return replaced
开发者ID:AngusGeek,项目名称:org.aspectj,代码行数:13,代码来源:Document.py

示例6: __init__

 def __init__(self, ownerDocument, nodeName, namespaceURI, prefix, localName):
     FtNode.__init__(self, ownerDocument, namespaceURI, prefix, localName);
     #Set our attributes
     self.__dict__['__attributes'] = implementation._4dom_createNamedNodeMap(ownerDocument)
     self.__dict__['__nodeName'] = nodeName
开发者ID:eveningwear,项目名称:aqua-release,代码行数:5,代码来源:Element.py

示例7: __init__

 def __init__(self, ownerDocument):
     FtNode.__init__(self, ownerDocument)
     self.__dict__['__nodeName'] = '#document-fragment'
开发者ID:Birdbird,项目名称:StartPage,代码行数:3,代码来源:DocumentFragment.py

示例8: __init__

 def __init__(self, ownerDocument, publicId, systemId, notationName):
     FtNode.__init__(self, ownerDocument)
     self.__dict__['__nodeName'] = '#entity'
     self.__dict__['publicId'] = publicId
     self.__dict__['systemId'] = systemId
     self.__dict__['notationName'] = notationName
开发者ID:HaiVu5583,项目名称:OdiSvn,代码行数:6,代码来源:Entity.py

示例9: __init__

 def __init__(self, ownerDocument, publicId, systemId, name):
     FtNode.__init__(self, ownerDocument)
     self.__dict__['__nodeName'] = name
     self.__dict__['publicId'] = publicId
     self.__dict__['systemId'] = systemId
开发者ID:Birdbird,项目名称:StartPage,代码行数:5,代码来源:Notation.py

示例10: __init__

 def __init__(self, ownerDocument, name, namespaceURI, prefix, localName):
     FtNode.__init__(self, ownerDocument, namespaceURI, prefix, localName)
     self.__dict__['__nodeName'] = name
     self._ownerElement = None
开发者ID:HaiVu5583,项目名称:OdiSvn,代码行数:4,代码来源:Attr.py

示例11: __init__

 def __init__(self,ownerDocument,target,data):
     FtNode.__init__(self,ownerDocument,EMPTY_NAMESPACE,'','')
     self.__dict__['__nodeName'] = target
     self.__dict__['__nodeValue'] = data
开发者ID:RedTea,项目名称:gaedav,代码行数:4,代码来源:ProcessingInstruction.py

示例12: __init__

 def __init__(self, ownerDocument, data):
     FtNode.__init__(self, ownerDocument)
     self.__dict__['__nodeValue'] = data
     self._length = len(data)
开发者ID:eveningwear,项目名称:aqua-release,代码行数:4,代码来源:CharacterData.py

示例13: _4dom_setDocumentType

 def _4dom_setDocumentType(self, doctype):
     if not self.__dict__['__doctype'] and doctype is not None:
         self.__dict__['__doctype'] = doctype
         doctype._4dom_setOwnerDocument(self)
         return FtNode.appendChild(self, doctype)
开发者ID:AngusGeek,项目名称:org.aspectj,代码行数:5,代码来源:Document.py

示例14: insertBefore

 def insertBefore(self, newChild, oldChild):
     self._4dom_addSingle(newChild)
     return FtNode.insertBefore(self, newChild, oldChild)
开发者ID:AngusGeek,项目名称:org.aspectj,代码行数:3,代码来源:Document.py

示例15: appendChild

 def appendChild(self, newChild):
     self._4dom_addSingle(newChild)
     return FtNode.appendChild(self, newChild)
开发者ID:AngusGeek,项目名称:org.aspectj,代码行数:3,代码来源:Document.py


注:本文中的FtNode.FtNode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。