net.fortuna.ical4j.model.property
Class Version
Property
net.fortuna.ical4j.model.property.Version
public class Version
extends Property
$Id: Version.java,v 1.13 2008/12/16 12:34:51 fortuna Exp $
Created: [Apr 6, 2004]
Defines a VERSION iCalendar property. When creating a new calendar you should always add a version property with
value "2.0". There is actually a constant defined in the Version class for this. e.g:
Calendar calendar = new Calendar();
calendar.getProperties().add(Version.VERSION_2_0);
Version() - Default constructor.
|
Version(ParameterList aList, String aValue)
|
Version(ParameterList aList, String aVersion1, String aVersion2)
|
Version(String minVersion, String maxVersion)
|
VERSION_2_0
public static final Version VERSION_2_0
Version
public Version()
Default constructor.
Version
public Version(ParameterList aList,
String aValue)
aList
- a list of parameters for this componentaValue
- a value string for this component
Version
public Version(ParameterList aList,
String aVersion1,
String aVersion2)
aList
- a list of parameters for this componentaVersion1
- a string representation of the minimum versionaVersion2
- a string representation of the maximum version
Version
public Version(String minVersion,
String maxVersion)
minVersion
- a string representation of the minimum versionmaxVersion
- a string representation of the maximum version
getMaxVersion
public final String getMaxVersion()
getMinVersion
public final String getMinVersion()
getValue
public final String getValue()
setMaxVersion
public void setMaxVersion(String maxVersion)
maxVersion
- The maxVersion to set.
setMinVersion
public void setMinVersion(String minVersion)
minVersion
- The minVersion to set.
setValue
public void setValue(String aValue)
validate
public final void validate()
throws ValidationException