本文整理了Java中org.apache.commons.validator.Var.getBundle()
方法的一些代码示例,展示了Var.getBundle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Var.getBundle()
方法的具体详情如下:
包路径:org.apache.commons.validator.Var
类名称:Var
方法名:getBundle
[英]Returns the resource bundle name.
[中]返回资源包名称。
代码示例来源:origin: commons-validator/commons-validator
assertEquals("var-1-1 jstype is wrong", "jstype-1-1", var11.getJsType());
assertFalse("var-1-1 resource is true", var11.isResource());
assertNull("var-1-1 bundle is not null.", var11.getBundle());
assertEquals("var-2-1 jstype is wrong", "jstype-2-1", var21.getJsType());
assertTrue("var-2-1 resource is false", var21.isResource());
assertEquals("var-2-1 bundle is wrong", "bundle-2-1", var21.getBundle());
assertNull("var-2-2 jstype is not null", var22.getJsType());
assertFalse("var-2-2 resource is true", var22.isResource());
assertEquals("var-2-2 bundle is wrong", "bundle-2-2", var22.getBundle());
代码示例来源:origin: org.apache.struts/struts-core
String bundle = var.getBundle();
MessageResources messages =
getMessageResources(application, request, bundle);
内容来源于网络,如有侵权,请联系作者删除!