• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java NoopAnnotator类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.jsonschema2pojo.NoopAnnotator的典型用法代码示例。如果您正苦于以下问题:Java NoopAnnotator类的具体用法?Java NoopAnnotator怎么用?Java NoopAnnotator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

NoopAnnotator类属于org.jsonschema2pojo包,在下文中一共展示了NoopAnnotator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getCustomAnnotator

点赞 2

import org.jsonschema2pojo.NoopAnnotator; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public Class<? extends Annotator> getCustomAnnotator() {
    if (isNotBlank(customAnnotator)) {
        try {
            return (Class<? extends Annotator>) Class.forName(customAnnotator);
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(e);
        }
    } else {
        return NoopAnnotator.class;
    }
}
 

开发者ID:weiwenqiang,
项目名称:GitHub,
代码行数:14,
代码来源:Jsonschema2PojoMojo.java

示例2: setCustomAnnotator

点赞 2

import org.jsonschema2pojo.NoopAnnotator; //导入依赖的package包/类
/**
 * Sets the 'customAnnotator' property of this class
 *
 * @param customAnnotator
 *            A custom annotator to use to annotate the generated types
 */
@SuppressWarnings("unchecked")
public void setCustomAnnotator(String customAnnotator) {
    if (isNotBlank(customAnnotator)) {
        try {
            this.customAnnotator = (Class<? extends Annotator>) Class.forName(customAnnotator);
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(e);
        }
    } else {
        this.customAnnotator = NoopAnnotator.class;
    }
}
 

开发者ID:weiwenqiang,
项目名称:GitHub,
代码行数:19,
代码来源:Jsonschema2PojoTask.java

示例3: generationConfigIsReturned

点赞 1

import org.jsonschema2pojo.NoopAnnotator; //导入依赖的package包/类
@Test
public void generationConfigIsReturned() {

    GenerationConfig mockGenerationConfig = mock(GenerationConfig.class);

    RuleFactory ruleFactory = new RuleFactory(mockGenerationConfig, new NoopAnnotator(), new SchemaStore());

    assertThat(ruleFactory.getGenerationConfig(), is(sameInstance(mockGenerationConfig)));

}
 

开发者ID:weiwenqiang,
项目名称:GitHub,
代码行数:11,
代码来源:RuleFactoryImplTest.java

示例4: schemaStoreIsReturned

点赞 1

import org.jsonschema2pojo.NoopAnnotator; //导入依赖的package包/类
@Test
public void schemaStoreIsReturned() {

    SchemaStore mockSchemaStore = mock(SchemaStore.class);

    RuleFactory ruleFactory = new RuleFactory(new DefaultGenerationConfig(), new NoopAnnotator(), mockSchemaStore);

    assertThat(ruleFactory.getSchemaStore(), is(sameInstance(mockSchemaStore)));

}
 

开发者ID:weiwenqiang,
项目名称:GitHub,
代码行数:11,
代码来源:RuleFactoryImplTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)