in tools/src/main/java/org/apache/tuscany/sdo/generate/JavaGenerator.java [233:299]
protected int handleArgument(String args[], int index)
{
if (args[index].equalsIgnoreCase("-targetDirectory"))
{
targetDirectory = args[++index];
}
else if (args[index].equalsIgnoreCase("-javaPackage"))
{
javaPackage = args[++index];
}
else if (args[index].equalsIgnoreCase("-prefix"))
{
prefix = args[++index];
}
else if (args[index].equalsIgnoreCase("-noInterfaces"))
{
genOptions |= OPTION_NO_INTERFACES;
}
else if (args[index].equalsIgnoreCase("-sparsePattern"))
{
genOptions |= OPTION_SPARSE_PATTERN;
}
else if (args[index].equalsIgnoreCase("-storePattern"))
{
genOptions |= OPTION_STORE_PATTERN;
}
else if (args[index].equalsIgnoreCase("-noContainment"))
{
genOptions |= OPTION_NO_CONTAINMENT;
}
else if (args[index].equalsIgnoreCase("-noNotification"))
{
genOptions |= OPTION_NO_NOTIFICATION;
}
else if (args[index].equalsIgnoreCase("-arrayAccessors"))
{
genOptions |= OPTION_ARRAY_ACCESSORS;
}
else if (args[index].equalsIgnoreCase("-generateLoader"))
{
genOptions |= OPTION_GENERATE_LOADER;
}
else if (args[index].equalsIgnoreCase("-noUnsettable"))
{
genOptions |= OPTION_NO_UNSETTABLE;
}
else if (args[index].equalsIgnoreCase("-noEMF"))
{
System.out.println("Warning: -noEMF is deprecated. It is the default now.");
//genOptions |= OPTION_NO_EMF;
}
else if (args[index].equalsIgnoreCase("-interfaceDataObject"))
{
genOptions |= OPTION_INTERFACE_DO;
}
else if (args[index].equalsIgnoreCase("-noGenerate"))
{
genOptions |= OPTION_NO_GENERATE;
}
//else if (...)
else
{
return index;
}
return index + 1;
}