当前位置: 首页>>代码示例>>Java>>正文


Java ModelContext类代码示例

本文整理汇总了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);
}
 
开发者ID:quanticc,项目名称:sentry,代码行数:10,代码来源:PageableParameterBuilderPlugin.java

示例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);
}
 
开发者ID:stormpath,项目名称:generator-jhipster-stormpath,代码行数:10,代码来源:PageableParameterBuilderPlugin.java

示例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);
}
 
开发者ID:jhipster,项目名称:jhipster,代码行数:11,代码来源:PageableParameterBuilderPlugin.java

示例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);
}
 
开发者ID:codeabovelab,项目名称:haven-platform,代码行数:6,代码来源:JobParameterDescriptionSerializer.java


注:本文中的springfox.documentation.spi.schema.contexts.ModelContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。