Vector entries = new Vector();
Enumeration childrenNames = objectNode.enumerateChildren();
NamingEntry entry = null;
while (childrenNames.hasMoreElements()) {
String childName = (String) childrenNames.nextElement();
int length = objectNode.getUri().length();
if (!objectNode.getUri().equals("/"))
length += 1;
String childObjectName = childName.substring(length);
Object object = null;
try {
NodeRevisionDescriptors revisionDescriptors =
content.retrieve(slideToken, childName);
if (revisionDescriptors.hasRevisions()) {
// Retrieve latest revision descriptor
NodeRevisionDescriptor revisionDescriptor =
content.retrieve(slideToken, revisionDescriptors);
if (!isCollection(revisionDescriptor)) {
object = new SlideResource(revisionDescriptors,
revisionDescriptor);
}
}
if (object == null) {
object = new SlideDirContext(env, getNamespaceName(),
token, childName);
}
} catch (SlideException e) {
}
if (object != null) {
entry = new NamingEntry(childObjectName, object,
NamingEntry.ENTRY);
entries.addElement(entry);
}
}