| 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.Telephone; |
| 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 TelephoneType extends VCardParameter { |
| 49 |
private static final VCardParameterCaseClasses<TelephoneType> enums = new VCardParameterCaseClasses<>(TelephoneType.class); |
| 50 |
|
| 51 |
@SupportedVersions({ V2_1, V3_0 }) |
| 52 |
public static final TelephoneType BBS = new TelephoneType("bbs"); |
| 53 |
|
| 54 |
@SupportedVersions({ V2_1, V3_0 }) |
| 55 |
public static final TelephoneType CAR = new TelephoneType("car"); |
| 56 |
|
| 57 |
public static final TelephoneType CELL = new TelephoneType("cell"); |
| 58 |
|
| 59 |
public static final TelephoneType FAX = new TelephoneType("fax"); |
| 60 |
|
| 61 |
public static final TelephoneType HOME = new TelephoneType("home"); |
| 62 |
|
| 63 |
@SupportedVersions({ V2_1, V3_0 }) |
| 64 |
public static final TelephoneType ISDN = new TelephoneType("isdn"); |
| 65 |
|
| 66 |
@SupportedVersions({ V2_1, V3_0 }) |
| 67 |
public static final TelephoneType MODEM = new TelephoneType("modem"); |
| 68 |
|
| 69 |
@SupportedVersions({ V2_1, V3_0 }) |
| 70 |
public static final TelephoneType MSG = new TelephoneType("msg"); |
| 71 |
|
| 72 |
public static final TelephoneType PAGER = new TelephoneType("pager"); |
| 73 |
|
| 74 |
@SupportedVersions(V3_0) |
| 75 |
public static final TelephoneType PCS = new TelephoneType("pcs"); |
| 76 |
|
| 77 |
@SupportedVersions({ V2_1, V3_0 }) |
| 78 |
public static final TelephoneType PREF = new TelephoneType("pref"); |
| 79 |
|
| 80 |
@SupportedVersions(V4_0) |
| 81 |
public static final TelephoneType TEXT = new TelephoneType("text"); |
| 82 |
|
| 83 |
@SupportedVersions(V4_0) |
| 84 |
public static final TelephoneType TEXTPHONE = new TelephoneType("textphone"); |
| 85 |
|
| 86 |
public static final TelephoneType VIDEO = new TelephoneType("video"); |
| 87 |
|
| 88 |
public static final TelephoneType VOICE = new TelephoneType("voice"); |
| 89 |
|
| 90 |
public static final TelephoneType WORK = new TelephoneType("work"); |
| 91 |
|
| 92 |
private TelephoneType(String value) { |
| 93 |
super(value); |
| 94 |
} |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
public static TelephoneType find(String value) { |
| 103 |
return enums.find(value); |
| 104 |
} |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
public static TelephoneType get(String value) { |
| 114 |
return enums.get(value); |
| 115 |
} |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
public static Collection<TelephoneType> all() { |
| 123 |
return enums.all(); |
| 124 |
} |
| 125 |
} |