io.swagger.converter.ModelConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package io.swagger.converter;
import io.swagger.models.Model;
import io.swagger.models.properties.Property;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Iterator;
public interface ModelConverter {
/**
* @param type
* @param context
* @param annotations to consider when resolving the property
* @param chain the chain of model converters to try if this implementation cannot process
* @return null if this ModelConverter cannot convert the given Type
*/
public Property resolveProperty(Type type,
ModelConverterContext context,
Annotation[] annotations,
Iterator chain);
/**
* @param type
* @param context
* @param chain the chain of model converters to try if this implementation cannot process
* @return null if this ModelConverter cannot convert the given Type
*/
public Model resolve(Type type, ModelConverterContext context, Iterator chain);
}