
com.ellucian.generated.eedm.sections.v6_0.Credit Maven / Gradle / Ivy
package com.ellucian.generated.eedm.sections.v6_0;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
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;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"creditCategory",
"measure",
"minimum",
"maximum",
"increment"
})
@Generated("jsonschema2pojo")
public class Credit {
/**
* Credit Category
*
*
* (Required)
*
*/
@JsonProperty("creditCategory")
@JsonPropertyDescription("")
private CreditCategory creditCategory;
/**
* Unit of Measure
*
* A unit or standard of measurement.
* (Required)
*
*/
@JsonProperty("measure")
@JsonPropertyDescription("A unit or standard of measurement.")
private Credit.Measure measure;
/**
* Minimum number
*
* The lower, inclusive bound of a numeric range of values.
* (Required)
*
*/
@JsonProperty("minimum")
@JsonPropertyDescription("The lower, inclusive bound of a numeric range of values.")
private Double minimum;
/**
* Maximum number
*
* The upper, inclusive bound of a numeric range of values.
*
*/
@JsonProperty("maximum")
@JsonPropertyDescription("The upper, inclusive bound of a numeric range of values.")
private Object maximum;
/**
* Increment number
*
* The multiple by which a numeric range of values can be stepped from the minimum to the maximum. For example, a range of 1 to 3 with an increment of 1 would evaluate to 1, 2, or 3. Specifying an increment of 0.5 would evaluate to 1, 1.5, 2, 2.5, or 3
*
*/
@JsonProperty("increment")
@JsonPropertyDescription("The multiple by which a numeric range of values can be stepped from the minimum to the maximum. For example, a range of 1 to 3 with an increment of 1 would evaluate to 1, 2, or 3. Specifying an increment of 0.5 would evaluate to 1, 1.5, 2, 2.5, or 3")
private Object increment;
/**
* Credit Category
*
*
* (Required)
*
*/
@JsonProperty("creditCategory")
public CreditCategory getCreditCategory() {
return creditCategory;
}
/**
* Credit Category
*
*
* (Required)
*
*/
@JsonProperty("creditCategory")
public void setCreditCategory(CreditCategory creditCategory) {
this.creditCategory = creditCategory;
}
public Credit withCreditCategory(CreditCategory creditCategory) {
this.creditCategory = creditCategory;
return this;
}
/**
* Unit of Measure
*
* A unit or standard of measurement.
* (Required)
*
*/
@JsonProperty("measure")
public Credit.Measure getMeasure() {
return measure;
}
/**
* Unit of Measure
*
* A unit or standard of measurement.
* (Required)
*
*/
@JsonProperty("measure")
public void setMeasure(Credit.Measure measure) {
this.measure = measure;
}
public Credit withMeasure(Credit.Measure measure) {
this.measure = measure;
return this;
}
/**
* Minimum number
*
* The lower, inclusive bound of a numeric range of values.
* (Required)
*
*/
@JsonProperty("minimum")
public Double getMinimum() {
return minimum;
}
/**
* Minimum number
*
* The lower, inclusive bound of a numeric range of values.
* (Required)
*
*/
@JsonProperty("minimum")
public void setMinimum(Double minimum) {
this.minimum = minimum;
}
public Credit withMinimum(Double minimum) {
this.minimum = minimum;
return this;
}
/**
* Maximum number
*
* The upper, inclusive bound of a numeric range of values.
*
*/
@JsonProperty("maximum")
public Object getMaximum() {
return maximum;
}
/**
* Maximum number
*
* The upper, inclusive bound of a numeric range of values.
*
*/
@JsonProperty("maximum")
public void setMaximum(Object maximum) {
this.maximum = maximum;
}
public Credit withMaximum(Object maximum) {
this.maximum = maximum;
return this;
}
/**
* Increment number
*
* The multiple by which a numeric range of values can be stepped from the minimum to the maximum. For example, a range of 1 to 3 with an increment of 1 would evaluate to 1, 2, or 3. Specifying an increment of 0.5 would evaluate to 1, 1.5, 2, 2.5, or 3
*
*/
@JsonProperty("increment")
public Object getIncrement() {
return increment;
}
/**
* Increment number
*
* The multiple by which a numeric range of values can be stepped from the minimum to the maximum. For example, a range of 1 to 3 with an increment of 1 would evaluate to 1, 2, or 3. Specifying an increment of 0.5 would evaluate to 1, 1.5, 2, 2.5, or 3
*
*/
@JsonProperty("increment")
public void setIncrement(Object increment) {
this.increment = increment;
}
public Credit withIncrement(Object increment) {
this.increment = increment;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(Credit.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("creditCategory");
sb.append('=');
sb.append(((this.creditCategory == null)?"":this.creditCategory));
sb.append(',');
sb.append("measure");
sb.append('=');
sb.append(((this.measure == null)?"":this.measure));
sb.append(',');
sb.append("minimum");
sb.append('=');
sb.append(((this.minimum == null)?"":this.minimum));
sb.append(',');
sb.append("maximum");
sb.append('=');
sb.append(((this.maximum == null)?"":this.maximum));
sb.append(',');
sb.append("increment");
sb.append('=');
sb.append(((this.increment == null)?"":this.increment));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.maximum == null)? 0 :this.maximum.hashCode()));
result = ((result* 31)+((this.increment == null)? 0 :this.increment.hashCode()));
result = ((result* 31)+((this.measure == null)? 0 :this.measure.hashCode()));
result = ((result* 31)+((this.minimum == null)? 0 :this.minimum.hashCode()));
result = ((result* 31)+((this.creditCategory == null)? 0 :this.creditCategory.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Credit) == false) {
return false;
}
Credit rhs = ((Credit) other);
return ((((((this.maximum == rhs.maximum)||((this.maximum!= null)&&this.maximum.equals(rhs.maximum)))&&((this.increment == rhs.increment)||((this.increment!= null)&&this.increment.equals(rhs.increment))))&&((this.measure == rhs.measure)||((this.measure!= null)&&this.measure.equals(rhs.measure))))&&((this.minimum == rhs.minimum)||((this.minimum!= null)&&this.minimum.equals(rhs.minimum))))&&((this.creditCategory == rhs.creditCategory)||((this.creditCategory!= null)&&this.creditCategory.equals(rhs.creditCategory))));
}
/**
* Unit of Measure
*
* A unit or standard of measurement.
*
*/
@Generated("jsonschema2pojo")
public enum Measure {
CREDIT("credit"),
CEU("ceu"),
HOURS("hours");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (Credit.Measure c: values()) {
CONSTANTS.put(c.value, c);
}
}
Measure(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static Credit.Measure fromValue(String value) {
Credit.Measure constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}