Class TzOffsetTo

All Implemented Interfaces:
Serializable, Comparable<Property>, FluentProperty

public class TzOffsetTo extends Property
$Id$

Created: [Apr 6, 2004]

Defines a TZOFFSETTO iCalendar component property.

See Also:
  • Constructor Details

    • TzOffsetTo

      public TzOffsetTo()
      Default constructor.
    • TzOffsetTo

      public TzOffsetTo(String value)
      Parameters:
      value - an offset value
    • TzOffsetTo

      public TzOffsetTo(ParameterList aList, String aValue)
      Parameters:
      aList - a list of parameters for this component
      aValue - a value string for this component
    • TzOffsetTo

      @Deprecated public TzOffsetTo(UtcOffset anOffset)
      Deprecated.
      Parameters:
      anOffset - a timezone offset in milliseconds
    • TzOffsetTo

      public TzOffsetTo(ZoneOffset anOffset)
      Parameters:
      anOffset - a timezone offset in milliseconds
    • TzOffsetTo

      @Deprecated public TzOffsetTo(ParameterList aList, UtcOffset anOffset)
      Deprecated.
      Parameters:
      aList - a list of parameters for this component
      anOffset - a timezone offset in milliseconds
    • TzOffsetTo

      public TzOffsetTo(ParameterList aList, ZoneOffset anOffset)
      Parameters:
      aList - a list of parameters for this component
      anOffset - a timezone offset in milliseconds
  • Method Details

    • getOffset

      public final ZoneOffset getOffset()
      Returns:
      Returns the offset.
    • setValue

      public final void setValue(String aValue)
      Sets the current value of the property.
      Specified by:
      setValue in class Property
      Parameters:
      aValue - a string representation of the property value
    • getValue

      public final String getValue()
      Specified by:
      getValue in class Content
      Returns:
      the content value
    • setOffset

      public final void setOffset(ZoneOffset offset)
      Parameters:
      offset - The offset to set.
    • validate

      public ValidationResult validate() throws ValidationException
      Description copied from class: Property
      Perform validation on a property.
      Specified by:
      validate in class Property
      Throws:
      ValidationException - where the property is not in a valid state