src/main/java/com/feedzai/fos/impl/weka/utils/pmml/PMMLConversionCommons.java
public static List<weka.core.Attribute> buildAttributes(DataDictionary dataDict) {
        ImmutableList.Builder<weka.core.Attribute> attribuesBuilder = ImmutableList.builder();

        for (DataField dataField : dataDict.getDataFields()) {
            attribuesBuilder.add(buildAttribute(dataField));
        }

        return attribuesBuilder.build();
    }
public static List<weka.core.Attribute> buildAttributes(DataDictionary dataDict) {
        ImmutableList.Builder<weka.core.Attribute> attribuesBuilder = ImmutableList.builder();

        for (DataField dataField : dataDict.getDataFields()) {
            attribuesBuilder.add(buildAttribute(dataField));
        }

        return attribuesBuilder.build();
    }
Creates and returns {@link weka.core.Attribute attributes} from a {@link org.dmg.pmml.DataDictionary PMML DataDictionary}.

@param dataDict The {@link org.dmg.pmml.DataDictionary PMML DataDictionary} from which to build the attributes.
@return A new immutable list of {@link weka.core.Attribute attributes}.