public class Version extends Property
Calendar calendar = new Calendar();
calendar.getProperties().add(Version.VERSION_2_0);
Modifier and Type | Class and Description |
---|---|
static class |
Version.Factory |
Modifier and Type | Field and Description |
---|---|
static Version |
VERSION_2_0
iCalendar version 2.0.
|
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, CALSCALE, CATEGORIES, CLASS, COMMENT, COMPLETED, CONTACT, COUNTRY, CREATED, DESCRIPTION, DTEND, DTSTAMP, DTSTART, DUE, DURATION, EXDATE, EXPERIMENTAL_PREFIX, EXRULE, EXTENDED_ADDRESS, FREEBUSY, GEO, LAST_MODIFIED, LOCALITY, LOCATION, LOCATION_TYPE, METHOD, NAME, ORGANIZER, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZURL, UID, URL, VERSION
Constructor and Description |
---|
Version()
Default constructor.
|
Version(ParameterList aList,
java.lang.String aValue) |
Version(ParameterList aList,
java.lang.String aVersion1,
java.lang.String aVersion2) |
Version(java.lang.String minVersion,
java.lang.String maxVersion) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMaxVersion() |
java.lang.String |
getMinVersion() |
java.lang.String |
getValue() |
void |
setMaxVersion(java.lang.String maxVersion) |
void |
setMinVersion(java.lang.String minVersion) |
void |
setValue(java.lang.String aValue)
Sets the current value of the property.
|
void |
validate()
Perform validation on a property.
|
copy, equals, getName, getParameter, getParameters, getParameters, hashCode, toString
public static final Version VERSION_2_0
public Version()
public Version(ParameterList aList, java.lang.String aValue)
aList
- a list of parameters for this componentaValue
- a value string for this componentpublic Version(java.lang.String minVersion, java.lang.String maxVersion)
minVersion
- a string representation of the minimum versionmaxVersion
- a string representation of the maximum versionpublic Version(ParameterList aList, java.lang.String aVersion1, java.lang.String aVersion2)
aList
- a list of parameters for this componentaVersion1
- a string representation of the minimum versionaVersion2
- a string representation of the maximum versionpublic final java.lang.String getMaxVersion()
public final java.lang.String getMinVersion()
public void setValue(java.lang.String aValue)
public final java.lang.String getValue()
public void setMaxVersion(java.lang.String maxVersion)
maxVersion
- The maxVersion to set.public void setMinVersion(java.lang.String minVersion)
minVersion
- The minVersion to set.public void validate() throws ValidationException
Property
validate
in class Property
ValidationException
- where the property is not in a valid state