本文整理汇总了Java中org.mybatis.generator.api.dom.java.JavaVisibility.DEFAULT属性的典型用法代码示例。如果您正苦于以下问题:Java JavaVisibility.DEFAULT属性的具体用法?Java JavaVisibility.DEFAULT怎么用?Java JavaVisibility.DEFAULT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.mybatis.generator.api.dom.java.JavaVisibility
的用法示例。
在下文中一共展示了JavaVisibility.DEFAULT属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExampleMethodVisibility
public JavaVisibility getExampleMethodVisibility() {
if (exampleMethodVisibility == null) {
String type = context
.getJavaClientGeneratorConfiguration()
.getProperty(PropertyRegistry.DAO_EXAMPLE_METHOD_VISIBILITY);
if (stringHasValue(type)) {
if ("public".equalsIgnoreCase(type)) { //$NON-NLS-1$
exampleMethodVisibility = JavaVisibility.PUBLIC;
} else if ("private".equalsIgnoreCase(type)) { //$NON-NLS-1$
exampleMethodVisibility = JavaVisibility.PRIVATE;
} else if ("protected".equalsIgnoreCase(type)) { //$NON-NLS-1$
exampleMethodVisibility = JavaVisibility.PROTECTED;
} else if ("default".equalsIgnoreCase(type)) { //$NON-NLS-1$
exampleMethodVisibility = JavaVisibility.DEFAULT;
} else {
exampleMethodVisibility = JavaVisibility.PUBLIC;
warnings.add(getString("Warning.16", type)); //$NON-NLS-1$
}
} else {
exampleMethodVisibility = JavaVisibility.PUBLIC;
}
}
return exampleMethodVisibility;
}