Class TimeSettings

java.lang.Object
com.oss.metadata.TimeSettings

public class TimeSettings extends Object
The TimeSettings class captures information from ASN.1 PropertySetting constraint. Individual settings are represented as flags and flag combinations, plus number of digits in textual representation for year, time fractions and recurrence count, if any.
Since:
ASN.1/Java 3.2
  • Method Details

    • isBasicDate

      public boolean isBasicDate()
      Returns:
      true if "Basic=Date" property is set
    • isBasicTime

      public boolean isBasicTime()
      Returns:
      true if "Basic=Time" property is set
    • isBasicDateTime

      public boolean isBasicDateTime()
      Returns:
      true if "Basic=Date-Time" property is set
    • isBasicInterval

      public boolean isBasicInterval()
      Returns:
      true if "Basic=Interval" property is set
    • isBasicRecurrentInterval

      public boolean isBasicRecurrentInterval()
      Returns:
      true if "Basic=Rec-Interval" property is set
    • isBasicAll

      public boolean isBasicAll()
      Returns:
      true if no "Basic" property is set
    • isDateYear

      public final boolean isDateYear()
      Returns:
      true if "Date=Y" property is set
    • isDateYearMonth

      public final boolean isDateYearMonth()
      Returns:
      true if "Date=YM" property is set
    • isDateYearMonthDay

      public final boolean isDateYearMonthDay()
      Returns:
      true if "Date=YMD" property is set
    • isDateYearWeek

      public final boolean isDateYearWeek()
      Returns:
      true if "Date=YW" property is set
    • isDateYearWeekDay

      public final boolean isDateYearWeekDay()
      Returns:
      true if "Date=YWD" property is set
    • isDateYearDay

      public final boolean isDateYearDay()
      Returns:
      true if "Date=YD" property is set
    • isDateCentury

      public final boolean isDateCentury()
      Returns:
      true if "Date=C" property is set
    • isDateAll

      public final boolean isDateAll()
      Returns:
      true no "Date" property is set
    • isYearBasic

      public final boolean isYearBasic()
      Returns:
      true if "Year=Basic" property is set
    • isYearProleptic

      public final boolean isYearProleptic()
      Returns:
      true if "Year=Proleptic" property is set
    • isYearNegative

      public final boolean isYearNegative()
      Returns:
      true if "Year=Negative" property is set
    • isYearLarge

      public final boolean isYearLarge()
      Returns:
      true if "Year=Ln" property is set
    • isYearAll

      public final boolean isYearAll()
      Returns:
      true no "Year" property is set
    • getYearDigits

      public final int getYearDigits()
      Returns:
      "n" value in "Year=Ln" property
    • isTimeHour

      public final boolean isTimeHour()
      Returns:
      true if "Time=H" property is set
    • isTimeHourMinute

      public final boolean isTimeHourMinute()
      Returns:
      true if "Time=HM" property is set
    • isTimeHourMinuteSecond

      public final boolean isTimeHourMinuteSecond()
      Returns:
      true if "Time=HMS" property is set
    • isTimeFraction

      public final boolean isTimeFraction()
      Returns:
      true if time fraction property is set, "HFn" for example.
    • isTimeAll

      public final boolean isTimeAll()
      Returns:
      true if no "Time" property is set.
    • getTimeDigits

      public final int getTimeDigits()
      Returns:
      number of fractional digits in time value.
    • isTimeLocal

      public final boolean isTimeLocal()
      Returns:
      true if "Local-or-UTC=L" property is set.
    • isTimeUTC

      public final boolean isTimeUTC()
      Returns:
      true if "Local-or-UTC=Z" property is set.
    • isTimeLocalAndDifference

      public final boolean isTimeLocalAndDifference()
      Returns:
      true if "Local-or-UTC=LD" property is set.
    • isTimeLocalAll

      public final boolean isTimeLocalAll()
      Returns:
      true if no "Local-or-UTC" property is set.
    • isIntervalTypeDuration

      public final boolean isIntervalTypeDuration()
      Returns:
      true if "Interval-type=D" property is set.
    • isIntervalTypeStartEnd

      public final boolean isIntervalTypeStartEnd()
      Returns:
      true if "Interval-type=SE" property is set.
    • isIntervalTypeStartDuration

      public final boolean isIntervalTypeStartDuration()
      Returns:
      true if "Interval-type=SD" property is set.
    • isIntervalTypeDurationEnd

      public final boolean isIntervalTypeDurationEnd()
      Returns:
      true if "Interval-type=DE" property is set.
    • isIntervalTypeAll

      public final boolean isIntervalTypeAll()
      Returns:
      true if no "Interval-type" property is set.
    • isSEPointDate

      public final boolean isSEPointDate()
      Returns:
      true if "SE-point=Date" property is set.
    • isSEPointTime

      public final boolean isSEPointTime()
      Returns:
      true if "SE-point=Date" property is set.
    • isSEPointDateTime

      public final boolean isSEPointDateTime()
      Returns:
      true if "SE-point=Date-Time" property is set.
    • isSEPointAll

      public final boolean isSEPointAll()
      Returns:
      true if no "SE-point" property is set.
    • isRecurrenceUnlimited

      public final boolean isRecurrenceUnlimited()
      Returns:
      true if "Recurrence=Unlimited" property is set.
    • isRecurrenceDigits

      public final boolean isRecurrenceDigits()
      Returns:
      true if "Recurrence=Rn" property is set.
    • isRecurrenceAll

      public final boolean isRecurrenceAll()
      Returns:
      true if no "Recurrence" property is set.
    • getRecurrenceDigits

      public final int getRecurrenceDigits()
      Returns:
      "n" in "Recurrence=Rn" property is set.
    • isMidnightStart

      public final boolean isMidnightStart()
      Returns:
      true if "Midnight=Start" property is set.
    • isMidnightEnd

      public final boolean isMidnightEnd()
      Returns:
      true if "Midnight=End" property is set.
    • isMidnightAll

      public final boolean isMidnightAll()
      Returns:
      true if no "Midnight" property is set.
    • compareInstantSetting

      public boolean compareInstantSetting(TimeSettings that)
      Compare instant setting with other one without consideration Midnight setting and Local-or-UTC=LD setting in the second instant.