| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.tools.makeldif; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | |
| | | } |
| | | } |
| | | |
| | | Entry entry = templateEntry.toEntry(); |
| | | if (! entryWriter.writeEntry(entry)) |
| | | if (! entryWriter.writeEntry(templateEntry)) |
| | | { |
| | | return TagResult.STOP_PROCESSING; |
| | | } |
| | |
| | | for (int j=0; j < subordinateTemplates.length; j++) |
| | | { |
| | | TagResult r = |
| | | subordinateTemplates[j].writeEntries(entryWriter, entry.getDN(), |
| | | numEntriesPerTemplate[j]); |
| | | subordinateTemplates[j].writeEntries(entryWriter, |
| | | templateEntry.getDN(), numEntriesPerTemplate[j]); |
| | | if (! (r.keepProcessingParent() && r.keepProcessingTemplateFile())) |
| | | { |
| | | if (r.keepProcessingTemplateFile()) |