public class Uid extends UriProperty
Defines a globally unique identifier for this vCard.
Code sample
VCard vcard = new VCard(); Uid uid = new Uid("urn:uuid:b8767877-b4a1-4c70-9acc-505d3819e519"); vcard.setUid(uid); //or, generate a random UID uid = Uid.random(); vcard.setUid(uid);
Property name: UID
Supported versions: 2.1, 3.0, 4.0
value
group, parameters
Constructor and Description |
---|
Uid(java.lang.String uid)
Creates a UID property.
|
Modifier and Type | Method and Description |
---|---|
static Uid |
random()
Creates a UID property that contains a random UUID URI.
|
_validate, getValue, setValue
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate
public Uid(java.lang.String uid)
uid
- the UIDpublic static Uid random()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.