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  Integer hourOffset
           
protected  Integer minuteOffset
           
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
UtcOffsetProperty(Integer hourOffset, Integer minuteOffset)
           
 
Method Summary
 Integer getHourOffset()
           
 Integer getMinuteOffset()
           
 void setOffset(Integer hourOffset, Integer minuteOffset)
           
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, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, getTimezoneId, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, setParameter, setParameter, setParameters, setSentBy, setTimezone, setTimezoneId, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hourOffset

protected Integer hourOffset

minuteOffset

protected Integer minuteOffset
Constructor Detail

UtcOffsetProperty

public UtcOffsetProperty(Integer hourOffset,
                         Integer minuteOffset)
Method Detail

getHourOffset

public Integer getHourOffset()

getMinuteOffset

public Integer getMinuteOffset()

setOffset

public void setOffset(Integer hourOffset,
                      Integer minuteOffset)

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.

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.