AbstractDataProvider

public abstract class AbstractDataProvider extends MotechObject implements DataProvider

Methods

getBody

protected String getBody()

getClassForType

protected Class<?> getClassForType(String type)

getPackageRoot

public abstract String getPackageRoot()

getSupportClasses

public abstract List<Class<?>> getSupportClasses()

isAssignable

protected boolean isAssignable(Class<?> check, List<Class<?>> classes)

setBody

protected void setBody(String body)

setBody

protected void setBody(Resource resource)

supports

public boolean supports(String type)

toJSON

public String toJSON()