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. |
__iter__(self)
| |
__len__(self)
| |
__ne__(self,
other)
| |
__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. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Instance Variable Summary | |
---|---|
list of dns.rdataset.Rdataset objects | rdatasets : the node's rdatasets |
Class Variable Summary | |
---|---|
list |
__slots__ = ['rdatasets']
|
Method Details |
---|
__init__(self)
Initialize a DNS node.
|
__eq__(self,
other)
Two nodes are equal if they have the same rdatasets.
|
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=False)Find an rdataset matching the specified properties in the current node.
|
get_rdataset(self, rdclass, rdtype, covers=0, create=False)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__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Dec 10 12:46:08 2006 | http://epydoc.sf.net |