*/
@EqualsAndHashCode(callSuper = false)
@Data
-public class ToscaConstraintValidValues extends ToscaConstraint {
+public class JpaToscaConstraintValidValues extends JpaToscaConstraint {
private static final long serialVersionUID = 3152323457560746844L;
@SerializedName("valid_values")
private final List<String> validValues;
/**
- * The Default Constructor creates a {@link ToscaConstraintValidValues} object with a null key.
+ * The Default Constructor creates a {@link JpaToscaConstraintValidValues} object with a null key.
*/
- public ToscaConstraintValidValues() {
+ public JpaToscaConstraintValidValues() {
this(new PfReferenceKey());
}
/**
- * The Key Constructor creates a {@link ToscaConstraintValidValues} object with the given concept key.
+ * The Key Constructor creates a {@link JpaToscaConstraintValidValues} object with the given concept key.
*
* @param key the key of the constraint
*/
- public ToscaConstraintValidValues(final PfReferenceKey key) {
+ public JpaToscaConstraintValidValues(final PfReferenceKey key) {
super(key);
validValues = new LinkedList<>();
}
/**
- * The Key Constructor creates a {@link ToscaConstraintLogical} object with the given concept key
+ * The Key Constructor creates a {@link JpaToscaConstraintLogical} object with the given concept key
* and valid values list.
*
* @param key the key of the constraint
* @param validValues the valid values list of the constraint
*
*/
- public ToscaConstraintValidValues(final PfReferenceKey key, @NonNull final List<String> validValues) {
+ public JpaToscaConstraintValidValues(final PfReferenceKey key, @NonNull final List<String> validValues) {
super(key);
this.validValues = validValues;
}
*
* @param copyConcept the concept to copy from
*/
- public ToscaConstraintValidValues(@NonNull final ToscaConstraintValidValues copyConcept) {
+ public JpaToscaConstraintValidValues(@NonNull final JpaToscaConstraintValidValues copyConcept) {
throw new PfModelRuntimeException(Response.Status.INTERNAL_SERVER_ERROR, "cannot copy an immutable constraint");
}
return this.hashCode() - otherConcept.hashCode();
}
- final ToscaConstraintValidValues other = (ToscaConstraintValidValues) otherConcept;
+ final JpaToscaConstraintValidValues other = (JpaToscaConstraintValidValues) otherConcept;
int result = super.compareTo(other);
if (result != 0) {