APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.jndi.dns

pack-priv Class NameNode

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.jndi.dns.ZoneNode
Imports
java.util.Hashtable

A NameNode represents a node in the DNS namespace. Each node has a label, which is its name relative to its parent (so the node at Sun.COM has label "Sun"). Each node has a hashtable of children indexed by their labels converted to lower-case.

A node may be addressed from another by giving a DnsName consisting of the sequence of labels from one node to the other.

Each node also has an isZoneCut flag, used to indicate if the node is a zone cut. A zone cut is a node with an NS record that is contained in one zone, but that actually belongs to a child zone.

All access is unsynchronized.

Author
Scott Seligman

Field Summary

Modifier and TypeField and Description
private Hashtable<String, NameNode>
private int
private boolean
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv NameNode
add(DnsName name, int idx)

pack-priv int
pack-priv NameNode
get(String key)

pack-priv NameNode
get(DnsName name, int idx)

pack-priv Hashtable<String, NameNode>
pack-priv String
pack-priv boolean
protected NameNode
pack-priv void
setZoneCut(boolean isZoneCut)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

childrenback to summary
private Hashtable<String, NameNode> children
depthback to summary
private int depth
isZoneCutback to summary
private boolean isZoneCut
labelback to summary
private String label

Constructor Detail

NameNodeback to summary
pack-priv NameNode(String label)

Method Detail

addback to summary
pack-priv NameNode add(DnsName name, int idx)
depthback to summary
pack-priv int depth()
getback to summary
pack-priv NameNode get(String key)
getback to summary
pack-priv NameNode get(DnsName name, int idx)
getChildrenback to summary
pack-priv Hashtable<String, NameNode> getChildren()
getLabelback to summary
pack-priv String getLabel()
isZoneCutback to summary
pack-priv boolean isZoneCut()
newNameNodeback to summary
protected NameNode newNameNode(String label)
setZoneCutback to summary
pack-priv void setZoneCut(boolean isZoneCut)