本文整理了Java中org.apache.commons.validator.Var.getName()
方法的一些代码示例,展示了Var.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Var.getName()
方法的具体详情如下:
包路径:org.apache.commons.validator.Var
类名称:Var
方法名:getName
[英]Gets the name of the variable.
[中]获取变量的名称。
代码示例来源:origin: commons-validator/commons-validator
/**
* Add a <code>Var</code> to the <code>Field</code>.
* @param v The Validator Argument.
*/
public void addVar(Var v) {
this.getVarMap().put(v.getName(), v);
}
代码示例来源:origin: commons-validator/commons-validator
assertEquals("var-1-1 name is wrong", "var-1-1", var11.getName());
assertEquals("var-1-1 value is wrong", "value-1-1", var11.getValue());
assertEquals("var-1-1 jstype is wrong", "jstype-1-1", var11.getJsType());
assertEquals("var-2-1 name is wrong", "var-2-1", var21.getName());
assertEquals("var-2-1 value is wrong", "value-2-1", var21.getValue());
assertEquals("var-2-1 jstype is wrong", "jstype-2-1", var21.getJsType());
assertEquals("var-2-2 name is wrong", "var-2-2", var22.getName());
assertEquals("var-2-2 value is wrong", "value-2-2", var22.getValue());
assertNull("var-2-2 jstype is not null", var22.getJsType());
代码示例来源:origin: de.knightsoft-net/gwt-commons-validator
/**
* Add a <code>Var</code> to the <code>Field</code>.
* @param v The Validator Argument.
*/
public void addVar(Var v) {
this.getVarMap().put(v.getName(), v);
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.validator
/**
* Add a <code>Var</code> to the <code>Field</code>.
* @param v The Validator Argument.
*/
public void addVar(Var v) {
this.hVars.put(v.getName(), v);
}
代码示例来源:origin: org.apache.struts/struts-core
String varName = var.getName();
String varValue = var.getValue();
内容来源于网络,如有侵权,请联系作者删除!