ezvcard.property
Class Profile
java.lang.Object
ezvcard.property.VCardProperty
ezvcard.property.SimpleProperty<String>
ezvcard.property.TextProperty
ezvcard.property.Profile
- All Implemented Interfaces:
- Comparable<VCardProperty>
public class Profile
- extends TextProperty
Marks the vCard as being an vCard.
Code sample
VCard vcard = new VCard();
Profile profile = new Profile();
vcard.setProfile(profile);
Property name: PROFILE
Supported versions: 3.0
- Author:
- Michael Angstadt
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 |
Profile
public Profile()
_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.
_validate
protected void _validate(List<Warning> warnings,
VCardVersion version,
VCard vcard)
- Description copied from class:
VCardProperty
- Checks the property for data consistency problems or deviations from the
spec. Meant to be overridden by child classes that wish to provide
validation logic.
- Overrides:
_validate
in class SimpleProperty<String>
- Parameters:
warnings
- the list to add the warnings toversion
- the version to check the property againstvcard
- the vCard this property belongs to
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.