Package com.helger.html.hc.html.forms
Enum EHCAutoComplete
- java.lang.Object
-
- java.lang.Enum<EHCAutoComplete>
-
- com.helger.html.hc.html.forms.EHCAutoComplete
-
- All Implemented Interfaces:
IHCHasHTMLAttributeValue,com.helger.xml.microdom.IHasAttributeValue,Serializable,Comparable<EHCAutoComplete>
public enum EHCAutoComplete extends Enum<EHCAutoComplete> implements IHCHasHTMLAttributeValue
An enumeration that can be used insetAutoCompletemethods of input controls.
Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete- Since:
- 9.1.1
- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIONAL_NAMEThe middle name.ADDRESS_LEVEL1The first administrative level in the address.ADDRESS_LEVEL2The second administrative level, in addresses with at least two of them.ADDRESS_LEVEL3The third administrative level, in addresses with at least three administrative levels.ADDRESS_LEVEL4The finest-grained administrative level, in addresses which have four levels.ADDRESS_LINE1Each individual line of the street address.ADDRESS_LINE2Each individual line of the street address.ADDRESS_LINE3Each individual line of the street address.BDAYA birth date, as a full date.BDAY_DAYThe day of the month of a birth date.BDAY_MONTHThe month of the year of a birth date.BDAY_YEARThe year of a birth date.CC_ADDITIONAL_NAMEA middle name as given on a payment instrument or credit card.CC_CSCThe security code for the payment instrument; on credit cards, this is the 3-digit verification number on the back of the card.CC_EXPA payment method expiration date, typically in the form "MM/YY" or "MM/YYYY".CC_EXP_MONTHThe month in which the payment method expires.CC_EXP_YEARThe year in which the payment method expires.CC_FAMILY_NAMEA family name, as given on a credit card.CC_GIVEN_NAMEA given (first) name as given on a payment instrument like a credit card.CC_NAMEThe full name as printed on or associated with a payment instrument such as a credit card.CC_NUMBERA credit card number or other number identifying a payment method, such as an account number.CC_TYPEThe type of payment instrument (such as "Visa" or "Master Card").COUNTRYA country or territory code.COUNTRY_NAMEA country or territory name.CURRENT_PASSWORDThe user's current password.EMAILAn email address.FAMILY_NAMEThe family (or "last") name.GIVEN_NAMEThe given (or "first") name.HONORIFIC_PREFIXThe prefix or title, such as "MrsHONORIFIC_SUFFIXThe suffix, such as "JrIMPPA URL for an instant messaging protocol endpoint, such as "xmpp:username@example.net".LANGUAGEA preferred language, given as a valid BCP 47 language tag.NAMEThe field expects the value to be a person's full name.NEW_PASSWORDA new password.NICKNAMEA nickname or handle.OFFThe browser is not permitted to automatically enter or select a value for this field.ONThe browser is allowed to automatically complete the input.ONE_TIME_CODEA one-time code used for verifying user identity.ORGANIZATIONA company or organization name, such as "Acme Widget Company" or "Girl Scouts of America".ORGANIZATION_TITLEA job title, or the title a person has within an organization, such as "Senior Technical Writer", "President", or "Assistant Troop Leader".PHOTOThe URL of an image representing the person, company, or contact information given in the other fields in the form.POSTAL_CODEA postal code (in the United States, this is the ZIP code).SEXA gender identity (such as "Female", "Fa'afafine", "Hijra", "Male", "Nonbinary"), as freeform text without newlines.STREET_ADDRESSA street address.TELA full telephone number, including the country code.TEL_AREA_CODEThe area code, with any country-internal prefix applied if appropriate.TEL_COUNTRY_CODEThe country code, such as "1" for the United States, Canada, and other areas in North America and parts of the Caribbean.TEL_EXTENSIONA telephone extension code within the phone number, such as a room or suite number in a hotel or an office extension in a company.TEL_LOCALThe phone number without the country or area code.TEL_NATIONALThe entire phone number without the country code component, including a country-internal prefix.TRANSACTION_AMOUNTThe amount, given in the currency specified by "transaction-currency", of the transaction, for a payment form.TRANSACTION_CURRENCYThe currency in which the transaction is to take place.URLA URL, such as a home page or company website address as appropriate given the context of the other fields in the form.USERNAMEA username or account name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttrValue()static EHCAutoCompletegetFromAttrValueOrNull(String sAttrValue)static EHCAutoCompletevalueOf(String name)Returns the enum constant of this type with the specified name.static EHCAutoComplete[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.helger.html.hc.html.IHCHasHTMLAttributeValue
hasAttrValue
-
-
-
-
Enum Constant Detail
-
OFF
public static final EHCAutoComplete OFF
The browser is not permitted to automatically enter or select a value for this field. It is possible that the document or application provides its own autocomplete feature, or that security concerns require that the field's value not be automatically entered.
-
ON
public static final EHCAutoComplete ON
The browser is allowed to automatically complete the input. No guidance is provided as to the type of data expected in the field, so the browser may use its own judgement.
-
NAME
public static final EHCAutoComplete NAME
The field expects the value to be a person's full name. Using "name" rather than breaking the name down into its components is generally preferred because it avoids dealing with the wide diversity of human names and how they are structured; however, you can use the following autocomplete values if you do need to break the name down into its components:
-
HONORIFIC_PREFIX
public static final EHCAutoComplete HONORIFIC_PREFIX
The prefix or title, such as "Mrs.", "Mr.", "Miss", "Ms.", "Dr.", or "Mlle.".
-
GIVEN_NAME
public static final EHCAutoComplete GIVEN_NAME
The given (or "first") name.
-
ADDITIONAL_NAME
public static final EHCAutoComplete ADDITIONAL_NAME
The middle name.
-
FAMILY_NAME
public static final EHCAutoComplete FAMILY_NAME
The family (or "last") name.
-
HONORIFIC_SUFFIX
public static final EHCAutoComplete HONORIFIC_SUFFIX
The suffix, such as "Jr.", "B.Sc.", "PhD.", "MBASW", or "IV".
-
NICKNAME
public static final EHCAutoComplete NICKNAME
A nickname or handle.
-
EMAIL
public static final EHCAutoComplete EMAIL
An email address.
-
USERNAME
public static final EHCAutoComplete USERNAME
A username or account name.
-
NEW_PASSWORD
public static final EHCAutoComplete NEW_PASSWORD
A new password. When creating a new account or changing passwords, this should be used for an "Enter your new password" or "Confirm new password" field, as opposed to a general "Enter your current password" field that might be present. This may be used by the browser both to avoid accidentally filling in an existing password and to offer assistance in creating a secure password
-
CURRENT_PASSWORD
public static final EHCAutoComplete CURRENT_PASSWORD
The user's current password.
-
ONE_TIME_CODE
public static final EHCAutoComplete ONE_TIME_CODE
A one-time code used for verifying user identity.
-
ORGANIZATION_TITLE
public static final EHCAutoComplete ORGANIZATION_TITLE
A job title, or the title a person has within an organization, such as "Senior Technical Writer", "President", or "Assistant Troop Leader".
-
ORGANIZATION
public static final EHCAutoComplete ORGANIZATION
A company or organization name, such as "Acme Widget Company" or "Girl Scouts of America".
-
STREET_ADDRESS
public static final EHCAutoComplete STREET_ADDRESS
A street address. This can be multiple lines of text, and should fully identify the location of the address within its second administrative level (typically a city or town), but should not include the city name, ZIP or postal code, or country name.
-
ADDRESS_LINE1
public static final EHCAutoComplete ADDRESS_LINE1
Each individual line of the street address. These should only be present if the "street-address" is not present.
-
ADDRESS_LINE2
public static final EHCAutoComplete ADDRESS_LINE2
Each individual line of the street address. These should only be present if the "street-address" is not present.
-
ADDRESS_LINE3
public static final EHCAutoComplete ADDRESS_LINE3
Each individual line of the street address. These should only be present if the "street-address" is not present.
-
ADDRESS_LEVEL4
public static final EHCAutoComplete ADDRESS_LEVEL4
The finest-grained administrative level, in addresses which have four levels.
-
ADDRESS_LEVEL3
public static final EHCAutoComplete ADDRESS_LEVEL3
The third administrative level, in addresses with at least three administrative levels.
-
ADDRESS_LEVEL2
public static final EHCAutoComplete ADDRESS_LEVEL2
The second administrative level, in addresses with at least two of them. In countries with two administrative levels, this would typically be the city, town, village, or other locality in which the address is located.
-
ADDRESS_LEVEL1
public static final EHCAutoComplete ADDRESS_LEVEL1
The first administrative level in the address. This is typically the province in which the address is located. In the United States, this would be the state. In Switzerland, the canton. In the United Kingdom, the post town.
-
COUNTRY
public static final EHCAutoComplete COUNTRY
A country or territory code.
-
COUNTRY_NAME
public static final EHCAutoComplete COUNTRY_NAME
A country or territory name.
-
POSTAL_CODE
public static final EHCAutoComplete POSTAL_CODE
A postal code (in the United States, this is the ZIP code).
-
CC_NAME
public static final EHCAutoComplete CC_NAME
The full name as printed on or associated with a payment instrument such as a credit card. Using a full name field is preferred, typically, over breaking the name into pieces.
-
CC_GIVEN_NAME
public static final EHCAutoComplete CC_GIVEN_NAME
A given (first) name as given on a payment instrument like a credit card.
-
CC_ADDITIONAL_NAME
public static final EHCAutoComplete CC_ADDITIONAL_NAME
A middle name as given on a payment instrument or credit card.
-
CC_FAMILY_NAME
public static final EHCAutoComplete CC_FAMILY_NAME
A family name, as given on a credit card.
-
CC_NUMBER
public static final EHCAutoComplete CC_NUMBER
A credit card number or other number identifying a payment method, such as an account number.
-
CC_EXP
public static final EHCAutoComplete CC_EXP
A payment method expiration date, typically in the form "MM/YY" or "MM/YYYY".
-
CC_EXP_MONTH
public static final EHCAutoComplete CC_EXP_MONTH
The month in which the payment method expires.
-
CC_EXP_YEAR
public static final EHCAutoComplete CC_EXP_YEAR
The year in which the payment method expires.
-
CC_CSC
public static final EHCAutoComplete CC_CSC
The security code for the payment instrument; on credit cards, this is the 3-digit verification number on the back of the card.
-
CC_TYPE
public static final EHCAutoComplete CC_TYPE
The type of payment instrument (such as "Visa" or "Master Card").
-
TRANSACTION_CURRENCY
public static final EHCAutoComplete TRANSACTION_CURRENCY
The currency in which the transaction is to take place.
-
TRANSACTION_AMOUNT
public static final EHCAutoComplete TRANSACTION_AMOUNT
The amount, given in the currency specified by "transaction-currency", of the transaction, for a payment form.
-
LANGUAGE
public static final EHCAutoComplete LANGUAGE
A preferred language, given as a valid BCP 47 language tag.
-
BDAY
public static final EHCAutoComplete BDAY
A birth date, as a full date.
-
BDAY_DAY
public static final EHCAutoComplete BDAY_DAY
The day of the month of a birth date.
-
BDAY_MONTH
public static final EHCAutoComplete BDAY_MONTH
The month of the year of a birth date.
-
BDAY_YEAR
public static final EHCAutoComplete BDAY_YEAR
The year of a birth date.
-
SEX
public static final EHCAutoComplete SEX
A gender identity (such as "Female", "Fa'afafine", "Hijra", "Male", "Nonbinary"), as freeform text without newlines.
-
TEL
public static final EHCAutoComplete TEL
A full telephone number, including the country code. If you need to break the phone number up into its components, you can use these values for those fields:
-
TEL_COUNTRY_CODE
public static final EHCAutoComplete TEL_COUNTRY_CODE
The country code, such as "1" for the United States, Canada, and other areas in North America and parts of the Caribbean.
-
TEL_NATIONAL
public static final EHCAutoComplete TEL_NATIONAL
The entire phone number without the country code component, including a country-internal prefix. For the phone number "1-855-555-6502", this field's value would be "855-555-6502".
-
TEL_AREA_CODE
public static final EHCAutoComplete TEL_AREA_CODE
The area code, with any country-internal prefix applied if appropriate.
-
TEL_LOCAL
public static final EHCAutoComplete TEL_LOCAL
The phone number without the country or area code. This can be split further into two parts, for phone numbers which have an exchange number and then a number within the exchange. For the phone number "555-6502", use "tel-local-prefix" for "555" and "tel-local-suffix" for "6502".
-
TEL_EXTENSION
public static final EHCAutoComplete TEL_EXTENSION
A telephone extension code within the phone number, such as a room or suite number in a hotel or an office extension in a company.
-
IMPP
public static final EHCAutoComplete IMPP
A URL for an instant messaging protocol endpoint, such as "xmpp:username@example.net".
-
URL
public static final EHCAutoComplete URL
A URL, such as a home page or company website address as appropriate given the context of the other fields in the form.
-
PHOTO
public static final EHCAutoComplete PHOTO
The URL of an image representing the person, company, or contact information given in the other fields in the form.
-
-
Method Detail
-
values
public static EHCAutoComplete[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EHCAutoComplete c : EHCAutoComplete.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHCAutoComplete valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getAttrValue
@Nonnull @Nonempty public String getAttrValue()
- Specified by:
getAttrValuein interfacecom.helger.xml.microdom.IHasAttributeValue
-
getFromAttrValueOrNull
@Nullable public static EHCAutoComplete getFromAttrValueOrNull(@Nullable String sAttrValue)
-
-