super(Option.class);
}
@Override
public Map<String, String> mapFromObject(Object o) {
// TODO Auto-generated method stub
Option c = (Option) o;
Map<String, String> myMapping;
myMapping = new HashMap<String, String>();
myMapping.put(NAME_TAG, "option");
myMapping.put(VALUE_TAG, c.getContents());
myMapping.put("value", c.getValue());
if(c.isSelected() != null)
myMapping.put("selected", c.isSelected().toString());
else
myMapping.put("selected", "false" .toString());
return myMapping;
}