ezvcard.types
Class UidType

java.lang.Object
  extended by ezvcard.types.VCardType
      extended by ezvcard.types.TextType
          extended by ezvcard.types.UriType
              extended by 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

Field Summary
static String NAME
           
 
Fields inherited from class ezvcard.types.TextType
value
 
Fields inherited from class ezvcard.types.VCardType
group, subTypes, typeName
 
Constructor Summary
UidType()
           
UidType(String uid)
           
 
Method Summary
static UidType random()
          Generates a UID type that contains a random UID URI.
 
Methods inherited from class ezvcard.types.UriType
doMarshalXml, doUnmarshalHtml, doUnmarshalXml
 
Methods inherited from class ezvcard.types.TextType
doMarshalText, doUnmarshalText, getValue, setValue
 
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
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

UidType

public UidType()

UidType

public UidType(String uid)
Parameters:
uid - the UID
Method Detail

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.