Class UtcProperty

All Implemented Interfaces:
Serializable, Comparable<Property>, FluentProperty
Direct Known Subclasses:
Acknowledged, Completed, Created, DtStamp, LastModified, Trigger, TzUntil

public abstract class UtcProperty extends DateProperty
$Id$

Created on 8/08/2005

Superclass for all properties with date-time values that must be specified in UTC time.

See Also:
  • Constructor Details

  • Method Details

    • getDateTime

      public final DateTime getDateTime()
      Returns:
      Returns the date-time.
    • setDateTime

      public void setDateTime(DateTime dateTime)
      Parameters:
      dateTime - The dateTime to set.
    • setTimeZone

      public void setTimeZone(TimeZone timezone)
      Publically available method to update the current timezone.
      Overrides:
      setTimeZone in class DateProperty
      Parameters:
      timezone - a timezone instance
    • validate

      public ValidationResult validate() throws ValidationException
      Perform validation on a property.
      Overrides:
      validate in class DateProperty
      Throws:
      ValidationException - where the property is not in a valid state