@Documented @Retention(value=RUNTIME) public @interface SupportedVersions
Defines the vCard version(s) that support a property (VCardProperty
class), parameter value (VCardParameter instance), or data type (
VCardDataType instance). If this annotation is not present, then all
versions are presumed to be supported.
Examples
@SupportedVersions({ VCardVersion.V2_1, VCardVersion.V3_0 })
public class Agent extends VCardProperty {
//...
}
public class AddressType extends VCardParameter {
@SupportedVersions({ VCardVersion.V2_1, VCardVersion.V3_0 })
public static final AddressType DOM = new AddressType("dom");
//...
}
public class VCardDataType {
@SupportedVersions(VCardVersion.V2_1)
public static final VCardDataType CONTENT_ID = new VCardDataType("content-id");
//...
}
| Modifier and Type | Required Element and Description |
|---|---|
VCardVersion[] |
value |
public abstract VCardVersion[] value
Copyright © 2012–2023 Michael Angstadt. All rights reserved.