biweekly.property
Class UtcOffsetProperty
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.UtcOffsetProperty
- Direct Known Subclasses:
- TimezoneOffsetFrom, TimezoneOffsetTo
public class UtcOffsetProperty
- extends ICalProperty
Represents a property whose value is a timezone offset.
- Author:
- Michael Angstadt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offset
protected UtcOffset offset
UtcOffsetProperty
public UtcOffsetProperty(int hourOffset,
int minuteOffset)
UtcOffsetProperty
public UtcOffsetProperty(UtcOffset offset)
getHourOffset
public int getHourOffset()
getMinuteOffset
public int getMinuteOffset()
getOffset
public UtcOffset getOffset()
setOffset
public void setOffset(int hourOffset,
int minuteOffset)
setOffset
public void setOffset(UtcOffset offset)
validate
protected void validate(List<ICalComponent> components,
List<String> warnings)
- Description copied from class:
ICalProperty
- 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 ICalProperty
- Parameters:
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
Copyright © 2013 Michael Angstadt. All Rights Reserved.