InputConnection inCon =
ParametersFactory.eINSTANCE.createInputConnection();
inCon.setName(input.getName());
DType dt = input.getDType();
if (dt instanceof SimpleDType) {
SimpleDType sd = (SimpleDType) dt;
DomainTypeReference dtyperef =
ReferencesFactory.eINSTANCE.createDomainTypeReference();
DomainTypeDefinition def = TypesFactory.eINSTANCE.createDomainTypeDefinition();
def.setName(sd.toString().toString());
dtyperef.setTarget(def);
inCon.setDomainType(dtyperef);
}
if (dt != null) {
System.out.println ("IN dt: " + dt.toString());
}
if (input.getSType() != null) {
System.out.println ("IN st: " + input.getSType().toString());
}
this.getProcessingElementParameters().add(inCon);
}
}
if (descriptor.getOutputs() != null) {
for (ProcessingElementOutputDescriptor output: descriptor.getOutputs()) {
OutputConnection outCon = ParametersFactory.eINSTANCE.createOutputConnection();
outCon.setName(output.getName());
DType dt = output.getDType();
/**
if (dt != null) {
System.out.println ("OU dt: " + dt.toString());
}
**/
if (dt != null) {
System.out.println ("OUT dt: " + dt.toString());
}
if (output.getSType() != null) {
System.out.println ("OUT st: " + output.getSType().toString());
}