All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.penalara.ghc.jsonghcfile.engineghcfile.DifferentDays Maven / Gradle / Ivy

Go to download

Project with Java POJO classes of full file format to new PeñalaraGHC-Engine.

The newest version!

package com.penalara.ghc.jsonghcfile.engineghcfile;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;


/**
 * DifferentDays
 * 

* Conditions on this and another class unit cannot coincide on the same day. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "refSesions", "daysSetting" }) public class DifferentDays { /** * RefSesions *

* Sessions identifiers which class units should not be assigned on the same day. * (Required) * */ @JsonProperty("refSesions") @JsonPropertyDescription(" Sessions identifiers which class units should not be assigned on the same day.") private List refSesions = new ArrayList(); /** * Keep the same position each week or period for the class units. * */ @JsonProperty("daysSetting") @JsonPropertyDescription("Keep the same position each week or period for the class units.") private DifferentDays.DaysSetting daysSetting = DifferentDays.DaysSetting.fromValue("indifferentDaysPreferred"); /** * RefSesions *

* Sessions identifiers which class units should not be assigned on the same day. * (Required) * */ @JsonProperty("refSesions") public List getRefSesions() { return refSesions; } /** * RefSesions *

* Sessions identifiers which class units should not be assigned on the same day. * (Required) * */ @JsonProperty("refSesions") public void setRefSesions(List refSesions) { this.refSesions = refSesions; } /** * Keep the same position each week or period for the class units. * */ @JsonProperty("daysSetting") public DifferentDays.DaysSetting getDaysSetting() { return daysSetting; } /** * Keep the same position each week or period for the class units. * */ @JsonProperty("daysSetting") public void setDaysSetting(DifferentDays.DaysSetting daysSetting) { this.daysSetting = daysSetting; } /** * Keep the same position each week or period for the class units. * */ public enum DaysSetting { NON_CONSECUTIVE_DAYS_PREFERRED("nonConsecutiveDaysPreferred"), INDIFFERENT_DAYS_PREFERRED("indifferentDaysPreferred"), STRICT_NON_CONSECUTIVE_DAYS("strictNonConsecutiveDays"), STRICT_CONSECUTIVE_DAYS("strictConsecutiveDays"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (DifferentDays.DaysSetting c: values()) { CONSTANTS.put(c.value, c); } } DaysSetting(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static DifferentDays.DaysSetting fromValue(String value) { DifferentDays.DaysSetting constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy