com.podio.item.map.converter.StateConverterProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.item.map.converter;
import java.lang.reflect.AnnotatedElement;
import com.podio.app.ApplicationField;
import com.podio.app.ApplicationFieldType;
public class StateConverterProvider implements FieldConverterProvider {
@Override
public boolean isSupported(ApplicationFieldType fieldType) {
return fieldType == ApplicationFieldType.STATE;
}
@Override
public FieldConverter getConverter(ApplicationField field,
AnnotatedElement element) {
return new StateConverter(field.getConfiguration().getSettings()
.getAllowedValues());
}
}