Package com.forgerock.opendj.ldap.tools
Class MakeLDIF
- java.lang.Object
-
- com.forgerock.opendj.cli.ConsoleApplication
-
- com.forgerock.opendj.ldap.tools.MakeLDIF
-
public final class MakeLDIF extends ConsoleApplication
Program that generate LDIF content based on a template.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.forgerock.opendj.cli.ConsoleApplication
ConsoleApplication.Style
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPTION_LONG_CONSTANTThe value for the constant option in LDIF generator tools.static StringOPTION_LONG_RESOURCE_PATHThe value for the path to look for LDIF resources (e.g data files).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisInteractive()Indicates whether the user has requested interactive behavior.static voidmain(String[] args)The main method for makeldif tool.static intrun(PrintStream out, PrintStream err, String... args)This method should be used to run this tool programmatically.-
Methods inherited from class com.forgerock.opendj.cli.ConsoleApplication
askConfirmation, askPort, confirmAction, errPrint, errPrintln, errPrintln, errPrintln, errPrintVerboseMessage, getErrorStream, getErrStream, getInputStream, getOutputStream, isAdvancedMode, isMenuDrivenMode, isQuiet, isScriptFriendly, isVerbose, pressReturnToContinue, print, println, println, println, println, printlnNoWrap, printProgressBar, printVerboseMessage, readInput, readInput, readLineOfInput, readPassword, readPassword, readPort, readValidatedInput, readValidatedInput
-
-
-
-
Field Detail
-
OPTION_LONG_CONSTANT
public static final String OPTION_LONG_CONSTANT
The value for the constant option in LDIF generator tools.- See Also:
- Constant Field Values
-
OPTION_LONG_RESOURCE_PATH
public static final String OPTION_LONG_RESOURCE_PATH
The value for the path to look for LDIF resources (e.g data files).- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
The main method for makeldif tool.- Parameters:
args- The command-line arguments provided to this program.
-
run
public static int run(PrintStream out, PrintStream err, String... args)
This method should be used to run this tool programmatically. Output and errors will be printed on providedPrintStream.- Parameters:
out- ThePrintStreamto use to write tool output.err- ThePrintStreamto use to write tool errors.args- The arguments to use with this tool.- Returns:
- The code returned by the tool
-
isInteractive
public boolean isInteractive()
Description copied from class:ConsoleApplicationIndicates whether the user has requested interactive behavior. The default implementation returnstrue.- Overrides:
isInteractivein classConsoleApplication- Returns:
trueif the user has requested interactive behavior.
-
-