public String getterName(EntityProperty p) { return "get" + firstLetterUp(p.getName()); }
public String propertyType(EntityProperty entityProperty) { return entityProperty.getPropertyType(); }
public String propertyCastType(EntityProperty entityProperty) { if (primitveToWrapper.containsKey(entityProperty.getPropertyType())) return primitveToWrapper.get(entityProperty.getPropertyType()); return entityProperty.getPropertyType(); }
public String propertyName(EntityProperty entityProperty) { return entityProperty.getName(); }
public String entityName(EntityProperty property) { Entity entity = (Entity) property.eContainer(); return entity.getName(); }
public String staticName(EntityProperty property) { StringBuilder result = allUpperCase(property.getName()); return result.toString(); }
public String propertyTypeClass(EntityProperty property) { String propertyType = property.getPropertyType(); return propertyType + ".class"; }
public String removeName(EntityProperty p) { return "remove" + firstLetterUp(p.getName()); }