/** * Returns the Field with the given name or null if this Form has no such * field. * * @param fieldName The field name * @return The field value * @since Validator 1.1 */ public Field getField(String fieldName) { return getFieldMap().get(fieldName); }
/** * Returns true if this Form contains a Field with the given name. * * @param fieldName The field name * @return True if this form contains the field by the given name * @since Validator 1.1 */ public boolean containsField(String fieldName) { return getFieldMap().containsKey(fieldName); }
/** * Add a <code>Field</code> to the <code>Form</code>. * * @param f The field */ public void addField(Field f) { this.lFields.add(f); getFieldMap().put(f.getKey(), f); }
getFieldMap().remove(fieldKey); lFields.remove(old); templFields.add(old); getFieldMap().putAll(temphFields);
Field f = i.next(); if (getFieldMap().get(f.getKey()) == null) { lFields.add(n, f); getFieldMap().put(f.getKey(), f); n++;
Field field = getFieldMap().get(fieldName);
/** * Returns true if this Form contains a Field with the given name. * * @param fieldName The field name * @return True if this form contains the field by the given name * @since Validator 1.1 */ public boolean containsField(String fieldName) { return getFieldMap().containsKey(fieldName); }
/** * Returns the Field with the given name or null if this Form has no such * field. * * @param fieldName The field name * @return The field value * @since Validator 1.1 */ public Field getField(String fieldName) { return getFieldMap().get(fieldName); }
/** * Add a <code>Field</code> to the <code>Form</code>. * * @param f The field */ public void addField(Field f) { this.lFields.add(f); getFieldMap().put(f.getKey(), f); }
getFieldMap().remove(fieldKey); lFields.remove(old); templFields.add(old); getFieldMap().putAll(temphFields);
Field f = i.next(); if (getFieldMap().get(f.getKey()) == null) { lFields.add(n, f); getFieldMap().put(f.getKey(), f); n++;
Field field = getFieldMap().get(fieldName);