Package com.ibm.fhir.model.type.code
Enum AddressType.ValueSet
- java.lang.Object
-
- java.lang.Enum<AddressType.ValueSet>
-
- com.ibm.fhir.model.type.code.AddressType.ValueSet
-
- All Implemented Interfaces:
Serializable,Comparable<AddressType.ValueSet>
- Enclosing class:
- AddressType
public static enum AddressType.ValueSet extends Enum<AddressType.ValueSet>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddressType.ValueSetfrom(String value)Factory method for creating AddressType.ValueSet values from a passed string value.Stringvalue()static AddressType.ValueSetvalueOf(String name)Returns the enum constant of this type with the specified name.static AddressType.ValueSet[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POSTAL
public static final AddressType.ValueSet POSTAL
PostalMailing addresses - PO Boxes and care-of addresses.
-
PHYSICAL
public static final AddressType.ValueSet PHYSICAL
PhysicalA physical address that can be visited.
-
BOTH
public static final AddressType.ValueSet BOTH
Postal & PhysicalAn address that is both physical and postal.
-
-
Method Detail
-
values
public static AddressType.ValueSet[] 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 (AddressType.ValueSet c : AddressType.ValueSet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressType.ValueSet 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
-
value
public String value()
- Returns:
- The java.lang.String value of the code represented by this enum
-
from
public static AddressType.ValueSet from(String value)
Factory method for creating AddressType.ValueSet values from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
-