ezvcard.parameters
Class KeyTypeParameter
java.lang.Object
ezvcard.parameters.VCardParameter
ezvcard.parameters.TypeParameter
ezvcard.parameters.MediaTypeParameter
ezvcard.parameters.KeyTypeParameter
public class KeyTypeParameter
- extends MediaTypeParameter
Represents the TYPE parameter of the KEY type.
vCard versions: 2.1, 3.0, 4.0
- Author:
- George El-Haddad Mar 10, 2010, Michael Angstadt Jul 06, 2012
Constructor Summary |
KeyTypeParameter(String value,
String mediaType,
String extension)
Use of this constructor is discouraged and should only be used for
defining non-standard TYPEs. |
PGP
public static final KeyTypeParameter PGP
GPG
public static final KeyTypeParameter GPG
X509
public static final KeyTypeParameter X509
KeyTypeParameter
public KeyTypeParameter(String value,
String mediaType,
String extension)
- Use of this constructor is discouraged and should only be used for
defining non-standard TYPEs. Please use one of the predefined static
objects.
- Parameters:
value
- the type value (e.g. "pgp")mediaType
- the media type (e.g. "application/pgp-keys")extension
- the file extension used for this type (e.g. "pgp")
valueOf
public static KeyTypeParameter valueOf(String value)
- Searches the static objects in this class for one that has a certain type
value.
- Parameters:
value
- the type value to search for (e.g. "pgp")
- Returns:
- the object or null if not found
findByMediaType
public static KeyTypeParameter findByMediaType(String mediaType)
- Searches the static objects in this class for one that has a certain
media type.
- Parameters:
mediaType
- the media type to search for (e.g. "application/pgp-keys")
- Returns:
- the object or null if not found
Copyright © 2012-2013. All Rights Reserved.