ezvcard.parameter
Class VersionedVCardParameter

java.lang.Object
  extended by ezvcard.parameter.VCardParameter
      extended by ezvcard.parameter.VersionedVCardParameter
Direct Known Subclasses:
AddressType, EmailType, Encoding, TelephoneType

public class VersionedVCardParameter
extends VCardParameter

Represents a parameter whose values are supported by a variety of different vCard versions.

Author:
Michael Angstadt

Field Summary
protected  Set<VCardVersion> supportedVersions
           
 
Fields inherited from class ezvcard.parameter.VCardParameter
value
 
Constructor Summary
VersionedVCardParameter(String value, VCardVersion... supportedVersions)
           
 
Method Summary
 boolean isSupported(VCardVersion version)
          Determines if the parameter value is supported by the given vCard version.
 
Methods inherited from class ezvcard.parameter.VCardParameter
equals, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

supportedVersions

protected final Set<VCardVersion> supportedVersions
Constructor Detail

VersionedVCardParameter

public VersionedVCardParameter(String value,
                               VCardVersion... supportedVersions)
Method Detail

isSupported

public boolean isSupported(VCardVersion version)
Determines if the parameter value is supported by the given vCard version.

Parameters:
version - the vCard version
Returns:
true if it is supported, false if not


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