Package com.iizix.urn.user
Enum UserProfileStringURNType
- java.lang.Object
- java.lang.Enum<UserProfileStringURNType>
- com.iizix.urn.user.UserProfileStringURNType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UserProfileStringURNType>
public enum UserProfileStringURNType extends java.lang.Enum<UserProfileStringURNType>
Possible query values for the{@link UserProfileStringURN}. Note that some query values can be indexed.- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description AdditionalEmailAdditional email.AddressAddress line.Address_2Address line 2 (hard coded): multiple values is not supported.Address_3Address line 3 (hard coded): multiple values is not supported.CityCity.CompanyDivisionCompany division.CompanyNameCompany name.CountryCountry.DeveloperGroupIDDeveloper Group ID.DeveloperIDDeveloper ID.EmailEmail.FirstNameFirst name.FixedPasswordFixedPassword flag.FullNameFull name.HomeFaxHome fax number.HomeMobileHome mobile number.HomePhoneHome phone number.JobTitleJob title.LastNameLast name.LocalizedFirstNameLocalized first name.LocalizedFullNameLocalized full name.LocalizedLastNameLocalized last Name.LocalizedMiddleNameLocalized middle name.LocalizedTitleLocalized title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).MiddleNameMiddle name.PhonePhone number.Phone_2Phone number #2 (hard coded): multiple values is not supported.PinCodePin code.RecoveryAnswerRecovery answer.RecoveryQuestionRecovery question.StateProvinceState or Province.TitleTitle (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).WorkFaxWork fax number.WorkMobileWork phone number.WorkPhoneWork phone number.ZipCodeZip code.
Field Summary
Fields Modifier and Type Field Description java.lang.StringdetailThe DETAIL string for the User Details without any additional suffix for a potential numbered one-based value.booleanmultipleBoolean 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserProfileStringURNTypefromQuery(java.lang.String query)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 UserProfileStringURNTypefromQuery(java.lang.String query, int[] oneBasedIndex)Gets the URN Profile User String query from a string, case insensitive.java.lang.StringgetDetail(int nn)Gets the variation of a 2nd or up to 99th details for the database DETAIL query.java.lang.StringgetValue(int nn)Gets the variation of a 2nd or up to 99th value.static UserProfileStringURNTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UserProfileStringURNType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
Title
public static final UserProfileStringURNType Title
Title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).
FullName
public static final UserProfileStringURNType FullName
Full name.
LastName
public static final UserProfileStringURNType LastName
Last name.
MiddleName
public static final UserProfileStringURNType MiddleName
Middle name.
FirstName
public static final UserProfileStringURNType FirstName
First name.
LocalizedTitle
public static final UserProfileStringURNType LocalizedTitle
Localized title (Mr., Mrs., Ms., Dr., Prof., Baron, Baroness, etc).
LocalizedFullName
public static final UserProfileStringURNType LocalizedFullName
Localized full name.
LocalizedLastName
public static final UserProfileStringURNType LocalizedLastName
Localized last Name.
LocalizedMiddleName
public static final UserProfileStringURNType LocalizedMiddleName
Localized middle name.
LocalizedFirstName
public static final UserProfileStringURNType LocalizedFirstName
Localized first name.
PinCode
public static final UserProfileStringURNType PinCode
Pin code.
FixedPassword
public static final UserProfileStringURNType FixedPassword
FixedPassword flag. If set, value is true or false.
RecoveryQuestion
public static final UserProfileStringURNType RecoveryQuestion
Recovery question.
RecoveryAnswer
public static final UserProfileStringURNType RecoveryAnswer
Recovery answer.
CompanyName
public static final UserProfileStringURNType CompanyName
Company name.
CompanyDivision
public static final UserProfileStringURNType CompanyDivision
Company division.
JobTitle
public static final UserProfileStringURNType JobTitle
Job title.
Address
public static final UserProfileStringURNType Address
Address line.This value supports multiple values, i.e. 1 to 99.
Address_2
public static final UserProfileStringURNType Address_2
Address line 2 (hard coded): multiple values is not supported.
Address_3
public static final UserProfileStringURNType Address_3
Address line 3 (hard coded): multiple values is not supported.
ZipCode
public static final UserProfileStringURNType ZipCode
Zip code.
City
public static final UserProfileStringURNType City
City.
StateProvince
public static final UserProfileStringURNType StateProvince
State or Province.
Country
public static final UserProfileStringURNType Country
Country.
Email
public static final UserProfileStringURNType Email
Email.
AdditionalEmail
public static final UserProfileStringURNType AdditionalEmail
Additional email.This value supports multiple values, i.e. 1 to 99.
Phone
public static final UserProfileStringURNType Phone
Phone number.This value supports multiple values, i.e. 1 to 99.
Phone_2
public static final UserProfileStringURNType Phone_2
Phone number #2 (hard coded): multiple values is not supported.
HomePhone
public static final UserProfileStringURNType HomePhone
Home phone number.This value supports multiple values, i.e. 1 to 99.
HomeMobile
public static final UserProfileStringURNType HomeMobile
Home mobile number.This value supports multiple values, i.e. 1 to 99.
HomeFax
public static final UserProfileStringURNType HomeFax
Home fax number.This value supports multiple values, i.e. 1 to 99.
WorkPhone
public static final UserProfileStringURNType WorkPhone
Work phone number.This value supports multiple values, i.e. 1 to 99.
WorkMobile
public static final UserProfileStringURNType WorkMobile
Work phone number.This value supports multiple values, i.e. 1 to 99.
WorkFax
public static final UserProfileStringURNType WorkFax
Work fax number.This value supports multiple values, i.e. 1 to 99.
DeveloperID
public static final UserProfileStringURNType DeveloperID
Developer ID.
DeveloperGroupID
public static final UserProfileStringURNType DeveloperGroupID
Developer Group ID.
Field Detail
detail
public final java.lang.String 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:
getDetail(int)
multiple
public final boolean multiple
Boolean 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:
getDetail(int)
Method Detail
values
public static UserProfileStringURNType[] 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 (UserProfileStringURNType c : UserProfileStringURNType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static UserProfileStringURNType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
getValue
public java.lang.String getValue(int nn)
Gets the variation of a 2nd or up to 99th value. Thennvalue preceded by an underscore is appended to the{@link #name()}of the enum value, e.g.WorkMobile<strong>_2</strong>.- Parameters:
nn- Thennvalue requested. If zero or one is specified, the original name is returned (if "one", multiple values support will throw anIllegalStateException).- Throws:
java.lang.IllegalArgumentException- If the value is less than 0 or larger than 99.java.lang.IllegalStateException- If the query string does not support multiple values.
getDetail
public java.lang.String getDetail(int nn)
Gets the variation of a 2nd or up to 99th details for the database DETAIL query.- Parameters:
nn- Thenndetails value requested. If zero or one is specified, the original name is returned (if "one", multiple values support will throw anIllegalStateException).- Throws:
java.lang.IllegalArgumentException- If the details value is less than 0 or larger than 99.java.lang.IllegalStateException- If the query string does not support multiple details values.
fromQuery
public static UserProfileStringURNType fromQuery(java.lang.String query)
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
nullif not found.
fromQuery
public static UserProfileStringURNType fromQuery(java.lang.String query, int[] oneBasedIndex)
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), theoneBasedIndexwill 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
nullif not found. - Throws:
java.lang.NullPointerException- If the URN Profile User String query results in an indexed value andoneBasedIndexis set tonull.