Enum ITimex.TimexMod

java.lang.Object
java.lang.Enum<ITimex.TimexMod>
edu.fiu.jtlex.data.ITimex.TimexMod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ITimex.TimexMod>, java.lang.constant.Constable
Enclosing interface:
ITimex

public static enum ITimex.TimexMod
extends java.lang.Enum<ITimex.TimexMod>
An enum that represents the twelve different Mod states an object may belong to.
Mod may belong to:
  • BEFORE
  • AFTER
  • ON_OR_BEFORE
  • ON_OR_AFTER
  • LESS_THAN
  • MORE_THAN
  • EQUAL_OR_LESS
  • EQUAL_OR_MORE
  • START
  • MID
  • END
  • APPROX
Inherited directly from TIDES: "In the TIMEX2 standard we use the MOD attribute to capture the semantics of modifiers within the scope of the TIMEX2 expression. There are values for MOD that apply only to points in time, values that apply only to durations, and values that can apply to either."
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    AFTER
    Point: less than (“less than a year ago”)
    APPROX
    Point and duration: about (e.g., “about three years ago”), around (e.g., “around three o’clock”), or approximately (e.g., “approximately one hour”).
    BEFORE
    Point: more than (“more than a decade ago”)
    END
    Point and Duration: end or late (e.g., “late afternoon”)
    EQUAL_OR_LESS
    Duration: no more than (e.g., “...will be open no more than 10 days”)
    EQUAL_OR_MORE
    Duration: at least (e.g., “...will be open at least 10 days”)
    LESS_THAN
    Duration: less than (e.g., “less than 2 hours long”) or nearly (e.g., "nearly four decades of experience")
    MID
    Point and Duration: middle (e.g., “the middle of the month”) or mid- (e.g., “mid-February”)
    MORE_THAN
    Duration: more than (e.g., "more than 5 minutes”)
    ON_OR_AFTER
    Point: no more than (“no more than a year ago”)
    ON_OR_BEFORE
    Point: no less than (“no less than a year ago”)
    START
    Point and Duration: early (e.g., "the early 1960s"), dawn (e.g., "the dawn of 2000"), start (e.g., "the start of the quarter"), or beginning
  • Method Summary

    Modifier and Type Method Description
    static ITimex.TimexMod valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ITimex.TimexMod[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BEFORE

      public static final ITimex.TimexMod BEFORE
      Point: more than (“more than a decade ago”)
    • AFTER

      public static final ITimex.TimexMod AFTER
      Point: less than (“less than a year ago”)
    • ON_OR_BEFORE

      public static final ITimex.TimexMod ON_OR_BEFORE
      Point: no less than (“no less than a year ago”)
    • ON_OR_AFTER

      public static final ITimex.TimexMod ON_OR_AFTER
      Point: no more than (“no more than a year ago”)
    • LESS_THAN

      public static final ITimex.TimexMod LESS_THAN
      Duration: less than (e.g., “less than 2 hours long”) or nearly (e.g., "nearly four decades of experience")
    • MORE_THAN

      public static final ITimex.TimexMod MORE_THAN
      Duration: more than (e.g., "more than 5 minutes”)
    • EQUAL_OR_LESS

      public static final ITimex.TimexMod EQUAL_OR_LESS
      Duration: no more than (e.g., “...will be open no more than 10 days”)
    • EQUAL_OR_MORE

      public static final ITimex.TimexMod EQUAL_OR_MORE
      Duration: at least (e.g., “...will be open at least 10 days”)
    • START

      public static final ITimex.TimexMod START
      Point and Duration: early (e.g., "the early 1960s"), dawn (e.g., "the dawn of 2000"), start (e.g., "the start of the quarter"), or beginning
    • MID

      public static final ITimex.TimexMod MID
      Point and Duration: middle (e.g., “the middle of the month”) or mid- (e.g., “mid-February”)
    • END

      public static final ITimex.TimexMod END
      Point and Duration: end or late (e.g., “late afternoon”)
    • APPROX

      public static final ITimex.TimexMod APPROX
      Point and duration: about (e.g., “about three years ago”), around (e.g., “around three o’clock”), or approximately (e.g., “approximately one hour”).
  • Method Details

    • values

      public static ITimex.TimexMod[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ITimex.TimexMod valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null