ezvcard.parameter
Class KeyType
java.lang.Object
ezvcard.parameter.VCardParameter
ezvcard.parameter.MediaTypeParameter
ezvcard.parameter.KeyType
public class KeyType
- extends MediaTypeParameter
Represents the TYPE parameter of the Key
property.
Supported versions: 2.1, 3.0, 4.0
- Author:
- George El-Haddad Mar 10, 2010, Michael Angstadt Jul 06, 2012
Method Summary |
static Collection<KeyType> |
all()
Gets all of the parameter values that are defined as static constants in
this class. |
static KeyType |
find(String type,
String mediaType,
String extension)
Searches for a parameter value that is defined as a static constant in
this class. |
static KeyType |
get(String type,
String mediaType,
String extension)
Searches for a parameter value and creates one if it cannot be found. |
PGP
public static final KeyType PGP
GPG
public static final KeyType GPG
X509
public static final KeyType X509
find
public static KeyType find(String type,
String mediaType,
String extension)
- Searches for a parameter value that is defined as a static constant in
this class.
- Parameters:
type
- the TYPE parameter value to search for (e.g. "PGP") or null
to not search by this valuemediaType
- the media type to search for (e.g.
"application/pgp-keys") or null to not search by this valueextension
- the file extension to search for (excluding the ".",
e.g. "pgp") or null to not search by this value
- Returns:
- the object or null if not found
get
public static KeyType get(String type,
String mediaType,
String extension)
- Searches for a parameter value and creates one if it cannot be found. All
objects are guaranteed to be unique, so they can be compared with
==
equality.
- Parameters:
type
- the TYPE parameter value to search for (e.g. "PGP") or null
to not search by this valuemediaType
- the media type to search for (e.g.
"application/pgp-keys") or null to not search by this valueextension
- the file extension to search for (excluding the ".",
e.g. "pgp") or null to not search by this value
- Returns:
- the object
all
public static Collection<KeyType> all()
- Gets all of the parameter values that are defined as static constants in
this class.
- Returns:
- the parameter values
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.