Package com.iizix.urn.user
Enum Class UserProfileStringURNType
- All Implemented Interfaces:
Serializable
,Comparable<UserProfileStringURNType>
,Constable
Possible query values for the
{@link UserProfileStringURN}
. Note that some query values can be indexed.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionAdditional email.Address line.Address line 2 (hard coded): multiple values is not supported.Address line 3 (hard coded): multiple values is not supported.City.Company division.Company name.Country.Developer Group ID.Developer ID.Email.First name.FixedPassword flag.Full name.Home fax number.Home mobile number.Home phone number.Job title.Last name.Localized first name.Localized full name.Localized last Name.Localized middle name.Localized title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).Middle name.Phone number.Phone number #2 (hard coded): multiple values is not supported.Pin code.Recovery answer.Recovery question.State or Province.Title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).Work fax number.Work phone number.Work phone number.Zip code.Field Summary
Modifier and TypeFieldDescriptionfinal String
The DETAIL string for the User Details without any additional suffix for a potential numbered one-based value.final boolean
Boolean flag indicating the "details" string can be appended with "-nn", where "nn" is a number between 1 and 99, used when e.g.Method Summary
Modifier and TypeMethodDescriptionstatic UserProfileStringURNType
Gets the URN Profile User query from a string, case insensitive, without support for multiple values, the match with "enum" values in this class must match precisely.static UserProfileStringURNType
Gets the URN Profile User String query from a string, case insensitive.getDetail
(int nn) Gets the variation of a 2nd or up to 99th details for the database DETAIL query.getValue
(int nn) Gets the variation of a 2nd or up to 99th value.static UserProfileStringURNType
Returns the enum constant of this class with the specified name.static UserProfileStringURNType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
Title
Title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).FullName
Full name.LastName
Last name.MiddleName
Middle name.FirstName
First name.LocalizedTitle
Localized title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).LocalizedFullName
Localized full name.LocalizedLastName
Localized last Name.LocalizedMiddleName
Localized middle name.LocalizedFirstName
Localized first name.PinCode
Pin code.FixedPassword
FixedPassword flag. If set, value is true or false.RecoveryQuestion
Recovery question.RecoveryAnswer
Recovery answer.CompanyName
Company name.CompanyDivision
Company division.JobTitle
Job title.Address
Address line.This value supports multiple values, i.e. 1 to 99.
Address_2
Address line 2 (hard coded): multiple values is not supported.Address_3
Address line 3 (hard coded): multiple values is not supported.ZipCode
Zip code.City
City.StateProvince
State or Province.Country
Country.Email
Email.AdditionalEmail
Additional email.This value supports multiple values, i.e. 1 to 99.
Phone
Phone number.This value supports multiple values, i.e. 1 to 99.
Phone_2
Phone number #2 (hard coded): multiple values is not supported.HomePhone
Home phone number.This value supports multiple values, i.e. 1 to 99.
HomeMobile
Home mobile number.This value supports multiple values, i.e. 1 to 99.
HomeFax
Home fax number.This value supports multiple values, i.e. 1 to 99.
WorkPhone
Work phone number.This value supports multiple values, i.e. 1 to 99.
WorkMobile
Work phone number.This value supports multiple values, i.e. 1 to 99.
WorkFax
Work fax number.This value supports multiple values, i.e. 1 to 99.
DeveloperID
Developer ID.DeveloperGroupID
Developer Group ID.
Field Details
detail
The DETAIL string for the User Details without any additional suffix for a potential numbered one-based value. Numbered values are only allowed when the member{@link #multiple}
istrue
.- See Also:
multiple
public final boolean multipleBoolean flag indicating the "details" string can be appended with "-nn", where "nn" is a number between 1 and 99, used when e.g. multiple phone numbers are present. When the value "nn" is one, nothing is appended (i.e. "-1" is not appended to the detail string).- See Also:
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
getValue
Gets the variation of a 2nd or up to 99th value. Thenn
value preceded by an underscore is appended to the{@link #name()}
of the enum value, e.g.WorkMobile<strong>_2</strong>
.- Parameters:
nn
- Thenn
value requested. If zero or one is specified, the original name is returned (if "one", multiple values support will throw anIllegalStateException
).- Throws:
IllegalArgumentException
- If the value is less than 0 or larger than 99.IllegalStateException
- If the query string does not support multiple values.
getDetail
Gets the variation of a 2nd or up to 99th details for the database DETAIL query.- Parameters:
nn
- Thenn
details value requested. If zero or one is specified, the original name is returned (if "one", multiple values support will throw anIllegalStateException
).- Throws:
IllegalArgumentException
- If the details value is less than 0 or larger than 99.IllegalStateException
- If the query string does not support multiple details values.
fromQuery
Gets the URN Profile User query from a string, case insensitive, without support for multiple values, the match with "enum" values in this class must match precisely.- Parameters:
query
- The URN Profile User String query.- Returns:
- The UserProfileStringURNQuery instance, or
null
if not found.
fromQuery
Gets the URN Profile User String query from a string, case insensitive. If the URN Profile User String query supports multiple values (appended as "" or "_1" for the first value, "_2" for the second, and so on), theoneBasedIndex
will return the one-based index value. The value cannot exceed 99.- Parameters:
query
- The URN Profile User String query.oneBasedIndex
- The one-based index of the query name is returned in this variable. Ifnon-null
, this array should be at least one in length, where the returned value is placed in index zero. Upon return, this index value zero will be set to zero if the URN Profile User query does not support multiple values, otherwise it will be set to a value between 1 and 99.- Returns:
- The UserProfileStringURNQuery instance, or
null
if not found. - Throws:
NullPointerException
- If the URN Profile User String query results in an indexed value andoneBasedIndex
is set tonull
.