Class Task.Timing.WithinDateRange

java.lang.Object
dev.metaschema.oscal.lib.model.Task.Timing.WithinDateRange
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
Enclosing class:
Task.Timing

@MetaschemaAssembly(formalName="On Date Range Condition", description="The task is intended to occur within the specified date range.", name="within-date-range", moduleClass=OscalAssessmentCommonModule.class) public static class Task.Timing.WithinDateRange extends Object implements dev.metaschema.core.model.IBoundObject
The task is intended to occur within the specified date range.
  • Constructor Details

    • WithinDateRange

      public WithinDateRange()
      Constructs a new dev.metaschema.oscal.lib.model.Task.Timing.WithinDateRange instance with no metadata.
    • WithinDateRange

      public WithinDateRange(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.Task.Timing.WithinDateRange instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getStart

      @NonNull public ZonedDateTime getStart()
      Get the "Start Date Condition".

      The task must occur on or after the specified date.

      Returns:
      the start value
    • setStart

      public void setStart(@NonNull ZonedDateTime value)
      Set the "Start Date Condition".

      The task must occur on or after the specified date.

      Parameters:
      value - the start value to set
    • getEnd

      @NonNull public ZonedDateTime getEnd()
      Get the "End Date Condition".

      The task must occur on or before the specified date.

      Returns:
      the end value
    • setEnd

      public void setEnd(@NonNull ZonedDateTime value)
      Set the "End Date Condition".

      The task must occur on or before the specified date.

      Parameters:
      value - the end value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object