February 2000
Intermediate to advanced
720 pages
15h 26m
English
One of the three following conditions will be true for an attribute in an entry: the attribute is present but has no value (actually a null value), the attribute is not present, or the attribute is present and has one or more values:
Attribute present in entry with no value. The following abbreviated LDIF record shows that this entry has the telephoneNumber attribute, but that the attribute has no value.
dn: uid=andy1, ou=People, o=airius.com ou: People cn: Andy Jones ... telephoneNumber:
This is a valid condition, and when prettyPrint executes, it does not print the attribute in the listing. Code that detects this condition sets the boolean flag hasVals inside the enumeration loop:
while ( enumVals.hasMoreElements() ) { ...Read now
Unlock full access