1 package nc.adriens.schemacrawler.plugin.neo4j;
2
3
4 import schemacrawler.schemacrawler.SchemaCrawlerOptions;
5 import schemacrawler.tools.executable.CommandProvider;
6 import schemacrawler.tools.executable.Executable;
7 import schemacrawler.tools.options.OutputOptions;
8
9
10
11
12
13 public class AdditionalCommandProvider
14 implements CommandProvider
15 {
16
17 @Override
18 public Executable configureNewExecutable(final SchemaCrawlerOptions schemaCrawlerOptions,
19 final OutputOptions outputOptions)
20 {
21 final AdditionalExecutable executable = new AdditionalExecutable();
22 if (schemaCrawlerOptions != null)
23 {
24 executable.setSchemaCrawlerOptions(schemaCrawlerOptions);
25 }
26 if (outputOptions != null)
27 {
28 executable.setOutputOptions(outputOptions);
29 }
30 return executable;
31 }
32
33 @Override
34 public String getCommand()
35 {
36 return AdditionalExecutable.COMMAND;
37 }
38
39 @Override
40 public String getHelpResource()
41 {
42 return "/help/neo4j.txt";
43 }
44
45 }