return new CustomSinglePropertyEncoder(propertyName, custom, index);
}
}
else if (Enum.class.isAssignableFrom(clazz))
{
return new EnumEncoder(propertyName, clazz, index);
}
else if (field.getAnnotation(Text.class) != null)
{
return new TextEncoder(propertyName);
}