import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
-
import javax.persistence.Column;
import javax.persistence.ElementCollection;
-
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.NonNull;
-
import org.apache.commons.lang3.ObjectUtils;
import org.onap.policy.common.utils.validation.Assertions;
import org.onap.policy.models.base.PfAuthorative;
import org.onap.policy.models.base.PfValidationResult;
import org.onap.policy.models.base.PfValidationResult.ValidationResult;
import org.onap.policy.models.tosca.authorative.concepts.ToscaConstraint;
-import org.onap.policy.models.tosca.authorative.concepts.ToscaEntrySchema;
+import org.onap.policy.models.tosca.authorative.concepts.ToscaSchemaDefinition;
/**
* Class to represent the EntrySchema of list/map property in TOSCA definition.
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class JpaToscaEntrySchema
- implements PfAuthorative<ToscaEntrySchema>, Serializable, Comparable<JpaToscaEntrySchema> {
+ implements PfAuthorative<ToscaSchemaDefinition>, Serializable, Comparable<JpaToscaEntrySchema> {
private static final long serialVersionUID = 3645882081163287058L;
*
* @param authorativeConcept the authorative concept to copy from
*/
- public JpaToscaEntrySchema(final ToscaEntrySchema authorativeConcept) {
+ public JpaToscaEntrySchema(final ToscaSchemaDefinition authorativeConcept) {
this.fromAuthorative(authorativeConcept);
}
@Override
- public ToscaEntrySchema toAuthorative() {
- ToscaEntrySchema toscaEntrySchema = new ToscaEntrySchema();
+ public ToscaSchemaDefinition toAuthorative() {
+ ToscaSchemaDefinition toscaEntrySchema = new ToscaSchemaDefinition();
toscaEntrySchema.setType(type.getName());
toscaEntrySchema.setTypeVersion(type.getVersion());
}
@Override
- public void fromAuthorative(final ToscaEntrySchema toscaEntrySchema) {
+ public void fromAuthorative(final ToscaSchemaDefinition toscaEntrySchema) {
if (toscaEntrySchema.getTypeVersion() != null) {
type = new PfConceptKey(toscaEntrySchema.getType(), toscaEntrySchema.getTypeVersion());
} else {