ezvcard.property
Class Mailer

java.lang.Object
  extended by ezvcard.property.VCardProperty
      extended by ezvcard.property.SimpleProperty<String>
          extended by ezvcard.property.TextProperty
              extended by ezvcard.property.Mailer
All Implemented Interfaces:
Comparable<VCardProperty>

public class Mailer
extends TextProperty

The email client that the person uses.

Code sample

 VCard vcard = new VCard();
 Mailer mailer = new Mailer("Thunderbird");
 vcard.setMailer(mailer);
 

Property name: MAILER

Supported versions: 2.1, 3.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
Mailer(String emailClient)
          Creates a mailer property.
 
Method Summary
 Set<VCardVersion> _supportedVersions()
           Gets the vCard versions that support this property.
 
Methods inherited from class ezvcard.property.SimpleProperty
_validate, getValue, setValue
 
Methods inherited from class ezvcard.property.VCardProperty
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

Mailer

public Mailer(String emailClient)
Creates a mailer property.

Parameters:
emailClient - the name of the email client (e.g. "Thunderbird")
Method Detail

_supportedVersions

public Set<VCardVersion> _supportedVersions()
Description copied from class: VCardProperty

Gets the vCard versions that support this property.

This method should be overridden by child classes if the property does not support all vCard versions. The default implementation of this method returns all vCard versions.

Overrides:
_supportedVersions in class VCardProperty
Returns:
the vCard versions that support this property.


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