}
}
}
System.out.println(" Selector is: " + selector.getClass().getName()); //$NON-NLS-1$
SequenceDBDataReader format = (SequenceDBDataReader) Class.forName(formatClassName).newInstance();
if (format instanceof ParameterPlugIn) {
ParameterPlugIn paFormat = (ParameterPlugIn) selector;
DataDescriptor[] dds = paFormat.getDataDescriptors();
if (dds != null) {
for (int d = 0;d<dds.length;d++) {
DataDescriptor dd = dds[d];
String string = props.getProperty("probemaker.targetInputFormat." + dd.getKey());
paFormat.setData(dd.getKey(), string);
}
}
}
if (outputClassName == null) {
outputClassName = DefaultTextTableFormatter.class.getName();
}
Class<?> outputClass = Class.forName(outputClassName);
TextTableFormatter<Probe> outputformatter = (TextTableFormatter<Probe>) outputClass.newInstance();
if (targetClassName == null) {
System.err.println("ERROR: Must specify a probemaker.targetType"); //$NON-NLS-1$
return;
}
Class<?> targetClass = Class.forName(targetClassName);
SequenceBuilder<? extends ProbeMakerTarget> seqBuilder = (SequenceBuilder<? extends ProbeMakerTarget>) targetClass.getMethod("getSequenceBuilder",(Class[])null).invoke(null,(Object[]) null); //$NON-NLS-1$
System.out.println(" Format is: " + format.getClass().getName()); //$NON-NLS-1$
System.out.println(" Target type is: " + targetClass.getName()); //$NON-NLS-1$
System.out.println(" Output format is: " + outputClass.getName()); //$NON-NLS-1$
TargetInputFormat<? extends ProbeMakerTarget> tif = new DefaultTargetInputFormat("Input format",format,null,seqBuilder,ListSequenceDB.getDefaultBuilder()); //$NON-NLS-1$