ezvcard.property
Class Uid
java.lang.Object
ezvcard.property.VCardProperty
ezvcard.property.SimpleProperty<String>
ezvcard.property.TextProperty
ezvcard.property.UriProperty
ezvcard.property.Uid
- All Implemented Interfaces:
- Comparable<VCardProperty>
public class Uid
- extends UriProperty
A globally unique identifier of the person.
Code sample
VCard vcard = new VCard();
Uid uid = new Uid("urn:uuid:b8767877-b4a1-4c70-9acc-505d3819e519");
vcard.setUid(uid);
//generate a random UID
uid = Uid.random();
vcard.setUid(uid);
Property name: UID
Supported versions: 2.1, 3.0, 4.0
- Author:
- Michael Angstadt
Constructor Summary |
Uid(String uid)
Creates a UID property. |
Method Summary |
static Uid |
random()
Generates a UID property that contains a random UID URI. |
Methods inherited from class ezvcard.property.VCardProperty |
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Uid
public Uid(String uid)
- Creates a UID property.
- Parameters:
uid
- the UID
random
public static Uid random()
- Generates a UID property that contains a random UID URI.
- Returns:
- a UID property with a random UID URI
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.