| 1 |
package ezvcard.parameter; |
| 2 |
|
| 3 |
import static ezvcard.VCardVersion.V2_1; |
| 4 |
import static ezvcard.VCardVersion.V3_0; |
| 5 |
import static ezvcard.VCardVersion.V4_0; |
| 6 |
|
| 7 |
import java.util.Collection; |
| 8 |
|
| 9 |
import ezvcard.SupportedVersions; |
| 10 |
import ezvcard.property.Email; |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
public class EmailType extends VCardParameter { |
| 49 |
private static final VCardParameterCaseClasses<EmailType> enums = new VCardParameterCaseClasses<>(EmailType.class); |
| 50 |
|
| 51 |
@SupportedVersions({ V2_1, V3_0 }) |
| 52 |
public static final EmailType INTERNET = new EmailType("internet"); |
| 53 |
|
| 54 |
@SupportedVersions({ V2_1, V3_0 }) |
| 55 |
public static final EmailType X400 = new EmailType("x400"); |
| 56 |
|
| 57 |
@SupportedVersions({ V2_1, V3_0 }) |
| 58 |
public static final EmailType PREF = new EmailType("pref"); |
| 59 |
|
| 60 |
@SupportedVersions(V2_1) |
| 61 |
public static final EmailType AOL = new EmailType("aol"); |
| 62 |
|
| 63 |
@SupportedVersions(V2_1) |
| 64 |
public static final EmailType APPLELINK = new EmailType("applelink"); |
| 65 |
|
| 66 |
@SupportedVersions(V2_1) |
| 67 |
public static final EmailType ATTMAIL = new EmailType("attmail"); |
| 68 |
|
| 69 |
@SupportedVersions(V2_1) |
| 70 |
public static final EmailType CIS = new EmailType("cis"); |
| 71 |
|
| 72 |
@SupportedVersions(V2_1) |
| 73 |
public static final EmailType EWORLD = new EmailType("eworld"); |
| 74 |
|
| 75 |
@SupportedVersions(V2_1) |
| 76 |
public static final EmailType IBMMAIL = new EmailType("ibmmail"); |
| 77 |
|
| 78 |
@SupportedVersions(V2_1) |
| 79 |
public static final EmailType MCIMAIL = new EmailType("mcimail"); |
| 80 |
|
| 81 |
@SupportedVersions(V2_1) |
| 82 |
public static final EmailType POWERSHARE = new EmailType("powershare"); |
| 83 |
|
| 84 |
@SupportedVersions(V2_1) |
| 85 |
public static final EmailType PRODIGY = new EmailType("prodigy"); |
| 86 |
|
| 87 |
@SupportedVersions(V2_1) |
| 88 |
public static final EmailType TLX = new EmailType("tlx"); |
| 89 |
|
| 90 |
@SupportedVersions(V4_0) |
| 91 |
public static final EmailType HOME = new EmailType("home"); |
| 92 |
|
| 93 |
@SupportedVersions(V4_0) |
| 94 |
public static final EmailType WORK = new EmailType("work"); |
| 95 |
|
| 96 |
private EmailType(String value) { |
| 97 |
super(value); |
| 98 |
} |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
public static EmailType find(String value) { |
| 107 |
return enums.find(value); |
| 108 |
} |
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
public static EmailType get(String value) { |
| 118 |
return enums.get(value); |
| 119 |
} |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
public static Collection<EmailType> all() { |
| 127 |
return enums.all(); |
| 128 |
} |
| 129 |
} |