本文整理汇总了Java中springfox.documentation.spi.schema.contexts.ModelContext类的典型用法代码示例。如果您正苦于以下问题:Java ModelContext类的具体用法?Java ModelContext怎么用?Java ModelContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ModelContext类属于springfox.documentation.spi.schema.contexts包,在下文中一共展示了ModelContext类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createModelRefFactory
import springfox.documentation.spi.schema.contexts.ModelContext; //导入依赖的package包/类
private Function<ResolvedType, ? extends ModelReference>
createModelRefFactory(ParameterContext context) {
ModelContext modelContext = inputParam(context.resolvedMethodParameter().getParameterType(),
context.getDocumentationType(),
context.getAlternateTypeProvider(),
context.getGenericNamingStrategy(),
context.getIgnorableParameterTypes());
return modelRefFactory(modelContext, nameExtractor);
}
示例2: createModelRefFactory
import springfox.documentation.spi.schema.contexts.ModelContext; //导入依赖的package包/类
private Function<ResolvedType, ? extends ModelReference>
createModelRefFactory(ParameterContext context) {
ModelContext modelContext = inputParam(context.methodParameter().getParameterType(),
context.getDocumentationType(),
context.getAlternateTypeProvider(),
context.getGenericNamingStrategy(),
context.getIgnorableParameterTypes());
return modelRefFactory(modelContext, nameExtractor);
}
示例3: createModelRefFactory
import springfox.documentation.spi.schema.contexts.ModelContext; //导入依赖的package包/类
private Function<ResolvedType, ? extends ModelReference> createModelRefFactory(ParameterContext context) {
ModelContext modelContext = inputParam(
context.getGroupName(),
context.resolvedMethodParameter().getParameterType(),
context.getDocumentationType(),
context.getAlternateTypeProvider(),
context.getGenericNamingStrategy(),
context.getIgnorableParameterTypes());
return ResolvedTypes.modelRefFactory(modelContext, nameExtractor);
}
开发者ID:MaritimeConnectivityPlatform,项目名称:IdentityRegistry,代码行数:11,代码来源:OperationPageableParameterReader.java
示例4: createModelRefFactory
import springfox.documentation.spi.schema.contexts.ModelContext; //导入依赖的package包/类
Function<ResolvedType, ? extends ModelReference> createModelRefFactory(ParameterContext context) {
ModelContext modelContext = inputParam(
context.getGroupName(),
context.resolvedMethodParameter().getParameterType(),
context.getDocumentationType(),
context.getAlternateTypeProvider(),
context.getGenericNamingStrategy(),
context.getIgnorableParameterTypes());
return modelRefFactory(modelContext, nameExtractor);
}
示例5: toString
import springfox.documentation.spi.schema.contexts.ModelContext; //导入依赖的package包/类
private String toString(Type type) {
ModelContext modelContext = ModelContext.returnValue("com.codeabovelab.dm", type, DocumentationType.SPRING_WEB, null,
new DefaultGenericTypeNamingStrategy(), null);
return typeNameExtractor.typeName(modelContext);
}