/** * Copyright © 2013 Titan Framework. All Rights Reserved. * * Developed by Laboratory for Precision Livestock, Environment and Software Engineering (PLEASE Lab) * of Embrapa Beef Cattle at Campo Grande - MS - Brazil. * * @see http://please.cnpgc.embrapa.br * * @author Camilo Carromeu * @author Jairo Ricardes Rodrigues Filho * * @version -1-alpha */ package .model; import java.util.Date; public class { $obj) echo " private ". $obj->type ." ". $obj->class .";\n"; foreach ($fields as $trash => $obj) if (get_class ($obj->object) == 'Enum') { ?> public static final Map class ?>Map; static { class ?>Map = new HashMap (); object->getMapping (); foreach ($items as $value => $label) echo " ". $obj->class ."Map.put (\"". $value ."\", \"". $label ."\");\n"; ?> } $obj) { ?> public type ?> getclass) ?> () { return class ?>; } object) == 'Enum') { ?> public String getclass) ?>Label () { if (class ?>Map.containsKey (class ?>)) return class ?>Map.get (class ?>); return class ?>; } public void setclass) ?> (type ?> class ?>) { this.class ?> = class ?>; } }