Home | Trees | Index | Help |
|
---|
Package dns :: Module rdataset :: Class Rdataset |
|
object
--+ |Set
--+ | Rdataset
RRset
Method Summary | |
---|---|
Create a new rdataset of the specified class and type. | |
bool |
Two rdatasets are equal if they have the same class, type, and covers, and contain the same rdata. |
__ne__(self,
other)
| |
__repr__(self)
| |
__str__(self)
| |
Add the specified rdata to the rdataset. | |
Update the set, removing any elements from other which are not in both sets. | |
Returns True if this rdataset matches the specified class, type, and covers | |
Convert the rdataset into DNS master file format. | |
int |
Convert the rdataset to wire format. |
Update the set, adding any elements from other which are not already in the set. | |
Add all rdatas in other to self. | |
Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. | |
Make a (shallow) copy of the set. | |
Inherited from Set | |
| |
| |
Make a (shallow) copy of the set. | |
| |
| |
| |
| |
| |
| |
| |
| |
Make the set empty. | |
Make a (shallow) copy of the set. | |
the same type as self |
Return a new set which self - other, i.e. |
Update the set, removing any elements from other which are in the set. | |
Remove an item from the set if present. | |
the same type as self |
Return a new set which is the intersection of self and other. |
bool |
Is self a subset of other? |
bool |
Is self a superset of other? |
Remove an item from the set. | |
the same type as self |
Return a new set which is the union of self and other. |
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 |
Instance Variable Summary | |
---|---|
int | covers : The covered type. |
int | rdclass : The class of the rdataset |
int | rdtype : The type of the rdataset |
int | ttl : The DNS TTL (Time To Live) value |
Inherited from Set | |
list | items : A list of the items which are in the set |
Class Variable Summary | |
---|---|
list |
__slots__ = ['rdclass', 'rdtype', 'covers', 'ttl']
|
Method Details |
---|
__init__(self,
rdclass,
rdtype,
covers=0)
Create a new rdataset of the specified class and type.
|
__eq__(self,
other)
Two rdatasets are equal if they have the same class, type, and
covers, and contain the same rdata.
|
add(self, rd, ttl=None)Add the specified rdata to the rdataset. If the optional ttl parameter is supplied, then self.update_ttl(ttl) will be called prior to adding the rdata.
|
intersection_update(self, other)Update the set, removing any elements from other which are not in both sets.
|
match(self, rdclass, rdtype, covers)Returns True if this rdataset matches the specified class, type, and covers |
to_text(self, name=None, origin=None, relativize=True, override_rdclass=None, **kw)Convert the rdataset into DNS master file format.
|
to_wire(self, name, file, compress=None, origin=None, override_rdclass=None, want_shuffle=True)Convert the rdataset to wire format.
|
union_update(self, other)Update the set, adding any elements from other which are not already in the set.
|
update(self, other)Add all rdatas in other to self.
|
update_ttl(self, ttl)Set the TTL of the rdataset to be the lesser of the set's current TTL or the specified TTL. If the set contains no rdatas, set the TTL to the specified TTL.
|
_clone(self)Make a (shallow) copy of the set. There is a 'clone protocol' that subclasses of this class should use. To make a copy, first call your super's _clone() method, and use the object returned as the new instance. Then make shallow copies of the attributes defined in the subclass. This protocol allows us to write the set algorithms that return new instances (e.g. union) once, and keep using them in subclasses.
|
Instance Variable Details |
---|
rdclassThe class of the rdataset
|
rdtypeThe type of the rdataset
|
ttlThe DNS TTL (Time To Live) value
|
Class Variable Details |
---|
__slots__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Apr 1 12:10:11 2004 | http://epydoc.sf.net |