Class DateRestrictionModel

All Implemented Interfaces:
Serializable

public class DateRestrictionModel extends RestrictionModel
Generated model class for type DateRestriction first defined at extension voucher.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • STARTDATE

      public static final String STARTDATE
      Generated constant - Attribute key of DateRestriction.startDate attribute defined at extension voucher.
      See Also:
    • ENDDATE

      public static final String ENDDATE
      Generated constant - Attribute key of DateRestriction.endDate attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • DateRestrictionModel

      public DateRestrictionModel()
      Generated constructor - Default constructor for generic creation.
    • DateRestrictionModel

      public DateRestrictionModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • DateRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public DateRestrictionModel(Date _endDate, Date _startDate, VoucherModel _voucher)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _endDate - initial attribute declared by type DateRestriction at extension voucher
      _startDate - initial attribute declared by type DateRestriction at extension voucher
      _voucher - initial attribute declared by type Restriction at extension voucher
    • DateRestrictionModel

      @Deprecated(since="4.1.1", forRemoval=true) public DateRestrictionModel(Date _endDate, ItemModel _owner, Date _startDate, VoucherModel _voucher)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _endDate - initial attribute declared by type DateRestriction at extension voucher
      _owner - initial attribute declared by type Item at extension core
      _startDate - initial attribute declared by type DateRestriction at extension voucher
      _voucher - initial attribute declared by type Restriction at extension voucher
  • Method Details

    • getEndDate

      @Accessor(qualifier="endDate", type=GETTER) public Date getEndDate()
      Generated method - Getter of the DateRestriction.endDate attribute defined at extension voucher.
      Returns:
      the endDate - the date until the given voucher is valid.
    • getStartDate

      @Accessor(qualifier="startDate", type=GETTER) public Date getStartDate()
      Generated method - Getter of the DateRestriction.startDate attribute defined at extension voucher.
      Returns:
      the startDate - the date past which the given voucher is valid.
    • setEndDate

      @Accessor(qualifier="endDate", type=SETTER) public void setEndDate(Date value)
      Generated method - Setter of DateRestriction.endDate attribute defined at extension voucher.
      Parameters:
      value - the endDate - the date until the given voucher is valid.
    • setStartDate

      @Accessor(qualifier="startDate", type=SETTER) public void setStartDate(Date value)
      Generated method - Setter of DateRestriction.startDate attribute defined at extension voucher.
      Parameters:
      value - the startDate - the date past which the given voucher is valid.