List of usage examples for org.apache.commons.validator Field getIndexedListProperty
public String getIndexedListProperty()
From source file:org.seasar.struts.lessconfig.factory.AbstractValidatorAnnotationHandler.java
protected Field createField(Field field, PropertyDesc propDesc, String depends) { Field newField = new Field(); newField.setDepends(depends);//from ww w. j a v a2 s . c o m String property = getFieldProperty(field, propDesc); if (propDesc.getPropertyType().isArray()) { newField.setProperty(""); newField.setIndexedListProperty(property); } else { newField.setProperty(property); newField.setIndexedListProperty(field.getIndexedListProperty()); } return newField; }
From source file:org.seasar.struts.lessconfig.factory.AbstractValidatorAnnotationHandler.java
protected String getFieldKey(Field field, PropertyDesc propDesc) { String key = getFieldProperty(field, propDesc); if (!StringUtil.isEmpty(field.getIndexedListProperty())) { key = field.getIndexedListProperty() + "[]." + key; }//from w ww . j a v a 2 s . co m return key; }