* @param name
* @param field
* @param nillable
*/
public void addValue(String name, String field, boolean nillable, boolean optional) {
currentValue = new JibxValue();
currentMapping.addChoice(currentValue);
currentValue.setName(name);
if(field!=null) currentValue.setField(JavaSourceUtils.toJavaField(field));
if(optional) currentValue.setUsage("optional");
if(nillable) currentValue.setNillable(Boolean.toString(true));