Home | Trees | Index | Help |
|
---|
Package dns :: Module node :: Class Node |
|
object
--+
|
Node
A DNS node.
A node is a set of rdatasetsMethod Summary | |
---|---|
Initialize a DNS node. | |
bool |
Two nodes are equal if they have the same rdatasets. |
__getstate__(...)
| |
__iter__(self)
| |
__len__(self)
| |
__ne__(self,
other)
| |
a new object with type S, a subtype of T |
|
__repr__(self)
| |
Delete the rdataset matching the specified properties in the current node. | |
dns.rdataset.Rdataset object |
Find an rdataset matching the specified properties in the current node. |
dns.rdataset.Rdataset object or None |
Get an rdataset matching the specified properties in the current node. |
Replace an rdataset. | |
string |
Convert a node to text format. |
Instance Variable Summary | |
---|---|
rdatasets
- the node's rdatasets |
Class Variable Summary | |
---|---|
list |
__slots__
|
list of dns.rdataset.Rdataset objects | rdatasets
|
Method Details |
---|
__init__(self)
Initialize a DNS node.
|
__eq__(self,
other)
Two nodes are equal if they have the same rdatasets.
|
__new__(S, ...)
|
delete_rdataset(self, rdclass, rdtype, covers=0)Delete the rdataset matching the specified properties in the current node. If a matching rdataset does not exist, it is not an error.
|
find_rdataset(self, rdclass, rdtype, covers=0, create=0)Find an rdataset matching the specified properties in the current node.
|
get_rdataset(self, rdclass, rdtype, covers=0, create=0)Get an rdataset matching the specified properties in the current node. None is returned if an rdataset of the specified type and class does not exist and create is not True.
|
replace_rdataset(self, replacement)Replace an rdataset. It is not an error if there is no rdataset matching replacement. Ownership of the replacement object is transferred to the node; in other words, this method does not store a copy of replacement at the node, it stores replacement itself. |
to_text(self, name, **kw)Convert a node to text format. Each rdataset at the node is printed. Any keyword arguments to this method are passed on to the rdataset's to_text() method.
|
Instance Variable Details |
---|
rdatasetsthe node's rdatasets |
Class Variable Details |
---|
__slots__
|
rdatasets
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 1.1 on Sun Aug 10 21:36:17 2003 | http://epydoc.sf.net |