org.xbill.DNS
Class APLRecord.Element

java.lang.Object
  extended byorg.xbill.DNS.APLRecord.Element
Enclosing class:
APLRecord

public static class APLRecord.Element
extends Object


Field Summary
 Object address
           
 int family
           
 boolean negative
           
 int prefixLength
           
 
Constructor Summary
APLRecord.Element(boolean negative, Inet6Address address, int prefixLength)
          Creates an APL element corresponding to an IPv6 prefix.
APLRecord.Element(boolean negative, InetAddress address, int prefixLength)
          Creates an APL element corresponding to an IPv4 prefix.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

family

public final int family

negative

public final boolean negative

prefixLength

public final int prefixLength

address

public final Object address
Constructor Detail

APLRecord.Element

public APLRecord.Element(boolean negative,
                         InetAddress address,
                         int prefixLength)
Creates an APL element corresponding to an IPv4 prefix.

Parameters:
negative - Indicates if this prefix is a negation.
address - The IPv4 address.
Throws:
IllegalArgumentException - The prefix length is invalid.

APLRecord.Element

public APLRecord.Element(boolean negative,
                         Inet6Address address,
                         int prefixLength)
Creates an APL element corresponding to an IPv6 prefix.

Parameters:
negative - Indicates if this prefix is a negation.
address - The IPv6 address.
Throws:
IllegalArgumentException - The prefix length is invalid.
Method Detail

toString

public String toString()