ezvcard.types
Class UidType
java.lang.Object
ezvcard.types.VCardType
ezvcard.types.TextType
ezvcard.types.UriType
ezvcard.types.UidType
- All Implemented Interfaces:
- Comparable<VCardType>
public class UidType
- extends UriType
A globally unique identifier of the person.
VCard vcard = new VCard();
UidType uid = new UidType("urn:uuid:b8767877-b4a1-4c70-9acc-505d3819e519");
vcard.setUid(uid);
//generate a random UID
uid = UidType.random();
vcard.setUid(uid);
vCard property name: UID
vCard versions: 2.1, 3.0, 4.0
- Author:
- Michael Angstadt
Method Summary |
static UidType |
random()
Generates a UID type that contains a random UID URI. |
Methods inherited from class ezvcard.types.VCardType |
compareTo, doMarshalSubTypes, getGroup, getQName, getSubTypes, getSupportedVersions, getTypeName, marshalSubTypes, marshalText, marshalXml, setGroup, unmarshalHtml, unmarshalText, unmarshalXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
UidType
public UidType()
UidType
public UidType(String uid)
- Parameters:
uid
- the UID
random
public static UidType random()
- Generates a UID type that contains a random UID URI.
- Returns:
- a UID type with a random UID URI
Copyright © 2012-2013. All Rights Reserved.