ezvcard.property
Class Uid

java.lang.Object
  extended by ezvcard.property.VCardProperty
      extended by ezvcard.property.SimpleProperty<String>
          extended by ezvcard.property.TextProperty
              extended by ezvcard.property.UriProperty
                  extended by 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

Field Summary
 
Fields inherited from class ezvcard.property.SimpleProperty
value
 
Fields inherited from class ezvcard.property.VCardProperty
group, parameters
 
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.SimpleProperty
_validate, getValue, setValue
 
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
 

Constructor Detail

Uid

public Uid(String uid)
Creates a UID property.

Parameters:
uid - the UID
Method Detail

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.