Enum CitizenshipType
- java.lang.Object
-
- java.lang.Enum<CitizenshipType>
-
- org.kuali.coeus.common.api.person.attr.CitizenshipType
-
- All Implemented Interfaces:
Serializable,Comparable<CitizenshipType>
public enum CitizenshipType extends Enum<CitizenshipType>
This class manages enums for the following CitizenshipTypes: US_CITIZEN_OR_NONCITIZEN_NATIONAL, PERMANENT_RESIDENT_OF_US, NON_US_CITIZEN_WITH_TEMPORARY_VISA, PERMANENT_RESIDENT_OF_US_PENDING.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCitizenShip()static CitizenshipTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CitizenshipType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
US_CITIZEN_OR_NONCITIZEN_NATIONAL
public static final CitizenshipType US_CITIZEN_OR_NONCITIZEN_NATIONAL
-
PERMANENT_RESIDENT_OF_US
public static final CitizenshipType PERMANENT_RESIDENT_OF_US
-
NON_US_CITIZEN_WITH_TEMPORARY_VISA
public static final CitizenshipType NON_US_CITIZEN_WITH_TEMPORARY_VISA
-
PERMANENT_RESIDENT_OF_US_PENDING
public static final CitizenshipType PERMANENT_RESIDENT_OF_US_PENDING
-
NOT_RESIDING_IN_US
public static final CitizenshipType NOT_RESIDING_IN_US
-
TEMP_VISA_ALSO_APPLIED_FOR_PERM_RESIDENT_STATUS
public static final CitizenshipType TEMP_VISA_ALSO_APPLIED_FOR_PERM_RESIDENT_STATUS
-
NOT_AVAILABLE
public static final CitizenshipType NOT_AVAILABLE
-
-
Method Detail
-
values
public static CitizenshipType[] 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 (CitizenshipType c : CitizenshipType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CitizenshipType 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
-
getCitizenShip
public String getCitizenShip()
-
-