public class Timezone extends UtcOffsetProperty
valueparameters| Constructor and Description |
|---|
Timezone(int hourOffset,
int minuteOffset)
Creates a timezone property.
|
Timezone(UtcOffset offset)
Creates a timezone property.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
getHourOffset, getMinuteOffset, setValuegetValue, getValue, setValueaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic Timezone(int hourOffset, int minuteOffset)
hourOffset - the hour component of the UTC offset (e.g. -5)minuteOffset - the minute component of the UTC offset (e.g. 0)protected void validate(List<ICalComponent> components, ICalVersion version, List<Warning> warnings)
ICalPropertyChecks the property for data consistency problems or deviations from the spec.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate in class UtcOffsetPropertycomponents - the hierarchy of components that the property belongs
toversion - the version to validate againstwarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.