org.apache.commons.validator.Var.getValue()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中org.apache.commons.validator.Var.getValue()方法的一些代码示例,展示了Var.getValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Var.getValue()方法的具体详情如下:
包路径:org.apache.commons.validator.Var
类名称:Var
方法名:getValue

Var.getValue介绍

[英]Gets the value of the variable.
[中]获取变量的值。

代码示例

代码示例来源:origin: commons-validator/commons-validator

/**
 * Retrieve a variable's value.
 * @param mainKey The Variable's key
 * @return the Variable's value
 */
public String getVarValue(String mainKey) {
  String value = null;
  Object o = getVarMap().get(mainKey);
  if (o != null && o instanceof Var) {
    Var v = (Var) o;
    value = v.getValue();
  }
  return value;
}

代码示例来源:origin: commons-validator/commons-validator

/**
 * Replace the vars value with the key/value pairs passed in.
 */
private void processVars(String key, String replaceValue) {
  Iterator<String> i = getVarMap().keySet().iterator();
  while (i.hasNext()) {
    String varKey = i.next();
    Var var = this.getVar(varKey);
    var.setValue(ValidatorUtils.replace(var.getValue(), key, replaceValue));
  }
}

代码示例来源:origin: commons-validator/commons-validator

String key2 = TOKEN_START + TOKEN_VAR + key + TOKEN_END;
Var var = this.getVar(key);
String replaceValue = var.getValue();

代码示例来源:origin: commons-validator/commons-validator

assertNotNull("var-1-1 is null.", var11);
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());
assertFalse("var-1-1 resource is true", var11.isResource());
assertNotNull("var-2-1 is null.", var21);
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());
assertTrue("var-2-1 resource is false", var21.isResource());
assertNotNull("var-2-2 is null.", var22);
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());
assertFalse("var-2-2 resource is true", var22.isResource());

代码示例来源:origin: de.knightsoft-net/gwt-commons-validator

/**
 * Retrieve a variable's value.
 * @param mainKey The Variable's key
 * @return the Variable's value
 */
public String getVarValue(String mainKey) {
  String value = null;
  Object o = getVarMap().get(mainKey);
  if (o != null && o instanceof Var) {
    Var v = (Var) o;
    value = v.getValue();
  }
  return value;
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.validator

/**
 * Retrieve a variable's value.
 * @param mainKey The Variable's key
 * @return the Variable's value
 */
public String getVarValue(String mainKey) {
  String value = null;
  Object o = hVars.get(mainKey);
  if (o != null && o instanceof Var) {
    Var v = (Var) o;
    value = v.getValue();
  }
  return value;
}

代码示例来源:origin: de.knightsoft-net/gwt-commons-validator

/**
 * Replace the vars value with the key/value pairs passed in.
 */
private void processVars(String key, String replaceValue) {
  Iterator<String> i = getVarMap().keySet().iterator();
  while (i.hasNext()) {
    String varKey = i.next();
    Var var = this.getVar(varKey);
    var.setValue(ValidatorUtils.replace(var.getValue(), key, replaceValue));
  }
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.validator

/**
 * Replace the vars value with the key/value pairs passed in.
 */
private void processVars(String key, String replaceValue) {
  Iterator i = this.hVars.keySet().iterator();
  while (i.hasNext()) {
    String varKey = (String) i.next();
    Var var = this.getVar(varKey);
    var.setValue(ValidatorUtils.replace(var.getValue(), key, replaceValue));
  }
}

代码示例来源:origin: de.knightsoft-net/gwt-commons-validator

String key2 = TOKEN_START + TOKEN_VAR + key + TOKEN_END;
Var var = this.getVar(key);
String replaceValue = var.getValue();

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.validator

String key2 = TOKEN_START + TOKEN_VAR + key + TOKEN_END;
Var var = this.getVar(key);
String replaceValue = var.getValue();

代码示例来源:origin: org.apache.struts/struts-core

HttpServletRequest request, boolean required) {
String varName = var.getName();
String varValue = var.getValue();

代码示例来源:origin: org.springmodules/spring-modules-validation

String varName = (String) varsIterator.next();
Var var = (Var) vars.get(varName);
String varValue = var.getValue();
String jsType = var.getJsType();

代码示例来源:origin: struts/struts

String varName = (String) varsIterator.next();
Var var = (Var) vars.get(varName);
String varValue = var.getValue();
String jsType = var.getJsType();

相关文章