DataDictionaryType dataDictionary = _40Factory.eINSTANCE.createDataDictionaryType();
dataDictionary.setNumberOfFields(BigInteger.valueOf(attributesArry.size()));
pmml.setDataDictionary(dataDictionary);
for (int i=0; i<attributesArry.size(); i++) {
String [] helpBox = attributesArry.get(i);
DataFieldType dataFieldType = _40Factory.eINSTANCE.createDataFieldType();
dataFieldType.setDataType(associateDatatype(helpBox[2])); //DATATYPE
dataFieldType.setName(helpBox[0]); //String
dataFieldType.setOptype(associateOptype(helpBox[1])); //OPTYPE
if (dataFieldType.getOptype().equals(OPTYPE.CATEGORICAL)) {
for (int j=3; j<helpBox.length; j++) {
ValueType valueType = _40Factory.eINSTANCE.createValueType();
valueType.setValue(helpBox[j]);
dataFieldType.getValue().add(valueType);
}
}
dataDictionary.getDataField().add(dataFieldType);
}