Class DateRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • STARTDATE

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

        public static final java.lang.String ENDDATE
        Generated constant - Attribute key of DateRestriction.endDate attribute defined at extension voucher.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.util.Date _endDate,
                                    java.util.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​(java.util.Date _endDate,
                                    ItemModel _owner,
                                    java.util.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 Detail

      • getEndDate

        @Accessor(qualifier="endDate",
                  type=GETTER)
        public java.util.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 java.util.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​(java.util.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​(java.util.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.