AutoComplete extends AbstractValueSetAttribute implements InputAttributable { public void addValue(final String value) { super.addToAttributeValueSet(value); } AutoComplete();  AutoComplete(final String value);  AutoComplete(final String... values); void removeValue(final String value); void removeValues(final Collection<String> values); void addValues(final Collection<String> values); void addValue(final String value); void setValue(final String value); void setValue(final boolean updateClient,
            final String attributeValue); String getValue(); Set<String> getValueSet(); static final String ON; static final String OFF; static final String NAME; static final String HONORIFIC_PREFIX; static final String GIVEN_NAME; static final String ADDITIONAL_NAME; static final String FAMILY_NAME; static final String HONORIFIC_SUFFIX; static final String NICKNAME; static final String EMAIL; static final String USERNAME; static final String NEW_PASSWORD; static final String CURRENT_PASSWORD; static final String ORGANIZATION_TITLE; static final String ORGANIZATION; static final String STREET_ADDRESS; static final String ADDRESS_LINE1; static final String ADDRESS_LINE2; static final String ADDRESS_LINE3; static final String ADDRESS_LEVEL4; static final String ADDRESS_LEVEL3; static final String ADDRESS_LEVEL2; static final String ADDRESS_LEVEL1; static final String COUNTRY; static final String COUNTRY_NAME; static final String POSTAL_CODE; static final String CC_NAME; static final String CC_GIVEN_NAME; static final String CC_ADDITIONAL_NAME; static final String CC_FAMILY_NAME; static final String CC_NUMBER; static final String CC_EXP; static final String CC_EXP_MONTH; static final String CC_EXP_YEAR; static final String CC_CSC; static final String CC_TYPE; static final String TRANSACTION_CURRENCY; static final String TRANSACTION_AMOUNT; static final String LANGUAGE; static final String BDAY; static final String BDAY_DAY; static final String BDAY_MONTH; static final String BDAY_YEAR; static final String SEX; static final String TEL; static final String TEL_COUNTRY_CODE; static final String TEL_NATIONAL; static final String TEL_AREA_CODE; static final String TEL_LOCAL; static final String TEL_LOCAL_PREFIX; static final String TEL_LOCAL_SUFFIX; static final String TEL_EXTENSION; static final String URL; static final String PHOTO; static final String IMPP; static final String HOME; static final String WORK; static final String MOBILE; static final String FAX; static final String PAGER; }
@Test public void testAddValue() { AutoComplete autoComplete = new AutoComplete(AutoComplete.NAME); assertEquals("autocomplete=\"name\"", autoComplete.toHtmlString()); autoComplete.addValue(AutoComplete.EMAIL); autoComplete.addValue(AutoComplete.USERNAME); assertEquals("autocomplete=\"name email username\"", autoComplete.toHtmlString()); }