Search in sources :

Example 1 with BooleanExample

use of org.apache.camel.dataformat.bindy.model.simple.bool.BooleanExample in project camel by apache.

the class BindySimpleCsvBooleanFalseMarshallTest method generateModel.

public List<Map<String, Object>> generateModel() {
    Map<String, Object> modelObjects = new HashMap<String, Object>();
    BooleanExample example = new BooleanExample();
    example.setName("andrew");
    example.setExist(Boolean.FALSE);
    modelObjects.put(example.getClass().getName(), example);
    models.add(modelObjects);
    return models;
}
Also used : BooleanExample(org.apache.camel.dataformat.bindy.model.simple.bool.BooleanExample) HashMap(java.util.HashMap)

Example 2 with BooleanExample

use of org.apache.camel.dataformat.bindy.model.simple.bool.BooleanExample in project camel by apache.

the class BindySimpleCsvBooleanTrueMarshallTest method generateModel.

public List<Map<String, Object>> generateModel() {
    Map<String, Object> modelObjects = new HashMap<String, Object>();
    BooleanExample example = new BooleanExample();
    example.setName("andrew");
    example.setExist(Boolean.TRUE);
    modelObjects.put(example.getClass().getName(), example);
    models.add(modelObjects);
    return models;
}
Also used : BooleanExample(org.apache.camel.dataformat.bindy.model.simple.bool.BooleanExample) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)2 BooleanExample (org.apache.camel.dataformat.bindy.model.simple.bool.BooleanExample)2