public void resolveProperties(AbstractBean bean)
{
TypeElement type = bean.getElement();
for (Element enclosed : type.getEnclosedElements())
{
ElementExt ext = ModelExt.of(enclosed);
// TODO error if annotated and is not a property
if (ext.isProperty() && ext.hasAnnotation(Constants.PROPERTY))
{
String name = ext.getPropertyName();
Property property = bean.getProperties().get(name);
if (property == null)
{
property = new Property(name);
bean.getProperties().put(name, property);
}
if (ext.isGetter())
{
property.setGetter(enclosed);
}
else if (ext.isSetter())
{
property.setSetter(enclosed);
}
else
{