ezvcard.property
Class Revision

java.lang.Object
  extended by ezvcard.property.VCardProperty
      extended by ezvcard.property.SimpleProperty<Date>
          extended by ezvcard.property.Revision
All Implemented Interfaces:
Comparable<VCardProperty>

public class Revision
extends SimpleProperty<Date>

The date that the vCard was last modified by its owner.

Code sample

 VCard vcard = new VCard();
 Revision rev = new Revision(new Date());
 vcard.setRevision(rev);
 

Property name: REV

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
Revision(Date date)
          Creates a revision property.
 
Method Summary
static Revision now()
          Creates a REV property whose value is the current time.
 
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

Revision

public Revision(Date date)
Creates a revision property.

Parameters:
date - the last-modified date
Method Detail

now

public static Revision now()
Creates a REV property whose value is the current time.

Returns:
the REV property instance


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.