|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.Version
public class Version
Specifies the min/max versions a consumer must support in order to successfully parse the iCalendar object.
Examples:
//the default iCal version
Version version = Version.v2_0();
if (verison.isV2_0()) {
//version is "2.0"
}
| Field Summary |
|---|
| Fields inherited from class biweekly.property.ICalProperty |
|---|
parameters |
| Constructor Summary | |
|---|---|
Version(String version)
Creates a new version property. |
|
Version(String minVersion,
String maxVersion)
Creates a new version property. |
|
| Method Summary | |
|---|---|
String |
getMaxVersion()
Gets the maximum version that a consumer must support in order to successfully parse the iCalendar object. |
String |
getMinVersion()
Gets the minimum version that a consumer must support in order to successfully parse the iCalendar object. |
boolean |
isV2_0()
Determines if this version is the default iCalendar version. |
void |
setMaxVersion(String maxVersion)
Sets the maximum version that a consumer must support in order to successfully parse the iCalendar object. |
void |
setMinVersion(String minVersion)
Sets the minimum version that a consumer must support in order to successfully parse the iCalendar object. |
static Version |
v2_0()
Creates a version property that is set to the default iCalendar version (2.0). |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
| Methods inherited from class biweekly.property.ICalProperty |
|---|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Version(String version)
version - the version that a consumer must support in order to
successfully parse the iCalendar object
public Version(String minVersion,
String maxVersion)
minVersion - the minimum version that a consumer must support in
order to successfully parse the iCalendar objectmaxVersion - the maximum version that a consumer must support in
order to successfully parse the iCalendar object| Method Detail |
|---|
public static Version v2_0()
public boolean isV2_0()
public String getMinVersion()
public void setMinVersion(String minVersion)
minVersion - the minimum version or null to removepublic String getMaxVersion()
public void setMaxVersion(String maxVersion)
maxVersion - the maximum version (this field is required)
protected void validate(List<ICalComponent> components,
List<String> warnings)
ICalProperty
validate in class ICalPropertycomponents - the hierarchy of components that the property belongs
towarnings - the list to add the warnings to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||