biweekly.property
Class UtcOffsetProperty

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by 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

Field Summary
protected  UtcOffset offset
           
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
UtcOffsetProperty(int hourOffset, int minuteOffset)
           
UtcOffsetProperty(UtcOffset offset)
           
 
Method Summary
 int getHourOffset()
           
 int getMinuteOffset()
           
 UtcOffset getOffset()
           
 void setOffset(int hourOffset, int minuteOffset)
           
 void setOffset(UtcOffset offset)
           
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
 

Field Detail

offset

protected UtcOffset offset
Constructor Detail

UtcOffsetProperty

public UtcOffsetProperty(int hourOffset,
                         int minuteOffset)

UtcOffsetProperty

public UtcOffsetProperty(UtcOffset offset)
Method Detail

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 to
warnings - the list to add the warnings to


Copyright © 2013 Michael Angstadt. All Rights Reserved.