本文整理汇总了Python中FtNode.FtNode.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python FtNode.__init__方法的具体用法?Python FtNode.__init__怎么用?Python FtNode.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FtNode.FtNode
的用法示例。
在下文中一共展示了FtNode.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
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 = ''
示例2: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
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)
示例3: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
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)
示例4: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
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
示例5: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
def __init__(self, ownerDocument):
FtNode.__init__(self, ownerDocument)
self.__dict__['__nodeName'] = '#document-fragment'
示例6: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
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
示例7: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
def __init__(self, ownerDocument, publicId, systemId, name):
FtNode.__init__(self, ownerDocument)
self.__dict__['__nodeName'] = name
self.__dict__['publicId'] = publicId
self.__dict__['systemId'] = systemId
示例8: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
def __init__(self, ownerDocument, name, namespaceURI, prefix, localName):
FtNode.__init__(self, ownerDocument, namespaceURI, prefix, localName)
self.__dict__['__nodeName'] = name
self._ownerElement = None
示例9: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
def __init__(self,ownerDocument,target,data):
FtNode.__init__(self,ownerDocument,EMPTY_NAMESPACE,'','')
self.__dict__['__nodeName'] = target
self.__dict__['__nodeValue'] = data
示例10: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
def __init__(self, ownerDocument, data):
FtNode.__init__(self, ownerDocument)
self.__dict__['__nodeValue'] = data
self._length = len(data)
示例11: __init__
# 需要导入模块: from FtNode import FtNode [as 别名]
# 或者: from FtNode.FtNode import __init__ [as 别名]
def __init__(self, ownerDocument, name):
#Note: the Entity's name is treated as nodeName
FtNode.__init__(self, ownerDocument)
self.__dict__['__nodeName'] = name