com.podio.item.map.converter.TextConverterProvider Maven / Gradle / Ivy
package com.podio.item.map.converter;
import java.lang.reflect.AnnotatedElement;
import com.podio.app.ApplicationField;
import com.podio.app.ApplicationFieldType;
public class TextConverterProvider implements FieldConverterProvider {
@Override
public boolean isSupported(ApplicationFieldType fieldType) {
return fieldType == ApplicationFieldType.TEXT
|| fieldType == ApplicationFieldType.LOCATION;
}
@Override
public FieldConverter getConverter(ApplicationField field,
AnnotatedElement element) {
return new TextConverter();
}
}