org.xbill.DNS
Class RRset

java.lang.Object
  |
  +--org.xbill.DNS.RRset

public class RRset
extends Object

A set of Records with the same name, type, and class. Also included are all SIG records signing the data records.

See Also:
Record, SIGRecord

Constructor Summary
RRset()
          Creates an empty RRset
 
Method Summary
 void addRR(Record r)
          Adds a Record to an RRset
 void clear()
          Deletes all Records from an RRset
 void deleteRR(Record r)
          Deletes a Record from an RRset
 Record first()
          Returns the first record
 short getDClass()
          Returns the class of the records
 Name getName()
          Returns the name of the records
 byte getSecurity()
          Returns the DNSSEC security of the RRset.
 int getTTL()
          Returns the ttl of the records
 short getType()
          Returns the type of the records
 Enumeration rrs()
          Returns an Enumeration listing all (data) records.
 Enumeration sigs()
          Returns an Enumeration listing all signature records
 int size()
          Returns the number of (data) records
 String toString()
          Converts the RRset to a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RRset

public RRset()
Creates an empty RRset
Method Detail

addRR

public void addRR(Record r)
Adds a Record to an RRset

deleteRR

public void deleteRR(Record r)
Deletes a Record from an RRset

clear

public void clear()
Deletes all Records from an RRset

rrs

public Enumeration rrs()
Returns an Enumeration listing all (data) records. This cycles through the records, so each Enumeration will start with a different record.

sigs

public Enumeration sigs()
Returns an Enumeration listing all signature records

size

public int size()
Returns the number of (data) records

getName

public Name getName()
Returns the name of the records
See Also:
Name

getType

public short getType()
Returns the type of the records
See Also:
Type

getDClass

public short getDClass()
Returns the class of the records
See Also:
DClass

getTTL

public int getTTL()
Returns the ttl of the records

first

public Record first()
Returns the first record

getSecurity

public byte getSecurity()
Returns the DNSSEC security of the RRset.

toString

public String toString()
Converts the RRset to a String
Overrides:
toString in class Object