aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements
diff options
context:
space:
mode:
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AdditionalInfoParameterDataDefinition.java89
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java587
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java186
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/CapabilityTypeDataDefinition.java128
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java187
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ConsumerDataDefinition.java204
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/DataTypeDataDefinition.java119
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupDataDefinition.java142
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupTypeDataDefinition.java163
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/HeatParameterDataDefinition.java162
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InputsValueDataDefinition.java63
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinition.java109
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationDataDefinition.java96
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PolicyTypeDataDefinition.java163
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinition.java126
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java195
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java136
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/RelationshipTypeDataDefinition.java128
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/SchemaDefinition.java139
19 files changed, 3122 insertions, 0 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AdditionalInfoParameterDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AdditionalInfoParameterDataDefinition.java
new file mode 100644
index 0000000000..4c062e3fab
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AdditionalInfoParameterDataDefinition.java
@@ -0,0 +1,89 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+public class AdditionalInfoParameterDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -565365728516901670L;
+
+ private String uniqueId;
+
+ private Long creationTime;
+
+ private Long modificationTime;
+
+ private Integer lastCreatedCounter = 0;
+
+ public AdditionalInfoParameterDataDefinition() {
+
+ }
+
+ public AdditionalInfoParameterDataDefinition(AdditionalInfoParameterDataDefinition p) {
+ this.uniqueId = p.uniqueId;
+ this.creationTime = p.creationTime;
+ this.modificationTime = p.modificationTime;
+ this.lastCreatedCounter = p.lastCreatedCounter;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ public Integer getLastCreatedCounter() {
+ return lastCreatedCounter;
+ }
+
+ public void setLastCreatedCounter(Integer lastCreatedCounter) {
+ this.lastCreatedCounter = lastCreatedCounter;
+ }
+
+ @Override
+ public String toString() {
+ return "AdditionalInfoParameterDataDefinition [uniqueId=" + uniqueId + ", creationTime=" + creationTime
+ + ", modificationTime=" + modificationTime + ", lastCreatedCounter=" + lastCreatedCounter + "]";
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java
new file mode 100644
index 0000000000..4baf09ea68
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java
@@ -0,0 +1,587 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.openecomp.sdc.common.api.ArtifactGroupTypeEnum;
+
+import java.io.Serializable;
+
+public class ArtifactDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1691343090754083941L;
+
+ /**
+ * The unique id of the artifact
+ */
+ private String uniqueId;
+
+ /**
+ * Tosca logical name
+ */
+ // private String logicalName;
+
+ /** This attribute specifies the type of this artifact. */
+ private String artifactType;
+
+ /** Specifies the reference of the artifact. uri to the SWIFT */
+ private String artifactRef;
+
+ /** Specifies the display name of the artifact. */
+ private String artifactName;
+
+ /**
+ * Non TOSCA compliant property
+ */
+ private String artifactRepository;
+
+ /**
+ * Checksum value of the uploaded artifact file retrieved from "Content-MD5"?
+ * header of the HTTP POST/PUT request. Should be updated each time when the
+ * artifact file is updated.
+ */
+ private String artifactChecksum;
+
+ /**
+ * artifact creator
+ */
+ private String userIdCreator;
+
+ /**
+ * USER ID of the last resource (artifact) updater
+ */
+ private String userIdLastUpdater;
+
+ /**
+ * Full name of artifact creator
+ */
+ private String creatorFullName;
+
+ /**
+ * Full name of the last resource (artifact) updater
+ */
+ private String updaterFullName;
+
+ /**
+ * Timestamp of the resource (artifact) creation
+ */
+ private Long creationDate;
+
+ /**
+ * Timestamp of the last resource (artifact) creation
+ */
+ private Long lastUpdateDate;
+
+ /**
+ * Id of artifact data in ES
+ */
+ private String esId;
+
+ /**
+ * Logical artifact name. Used by TOSCA
+ */
+ private String artifactLabel;
+
+ private String artifactCreator;
+
+ private String description;
+
+ private Boolean mandatory = Boolean.FALSE;
+
+ private String artifactDisplayName;
+
+ private String apiUrl;
+
+ private Boolean serviceApi = Boolean.FALSE;
+
+ /**
+ * Flag that set to TRUE if generated from AI&I Artifact generator to
+ * distinguish between manually uploaded and generated artifacts
+ */
+ private Boolean generated = Boolean.FALSE;
+
+ private ArtifactGroupTypeEnum artifactGroupType;
+ private Integer timeout;
+ private String artifactVersion;
+ private String artifactUUID;
+ private Long payloadUpdateDate;
+ private Long heatParamsUpdateDate;
+
+ private List<String> requiredArtifacts;
+
+ public ArtifactDataDefinition() {
+ artifactVersion = "0";
+ }
+
+ public ArtifactDataDefinition(ArtifactDataDefinition a) {
+ this.uniqueId = a.uniqueId;
+ this.artifactType = a.artifactType;
+ this.artifactRef = a.artifactRef;
+ this.artifactName = a.artifactName;
+ this.artifactRepository = a.artifactRepository;
+ this.artifactChecksum = a.artifactChecksum;
+ this.userIdCreator = a.userIdCreator;
+ this.userIdLastUpdater = a.userIdLastUpdater;
+ this.creatorFullName = a.creatorFullName;
+ this.updaterFullName = a.updaterFullName;
+ this.creationDate = a.creationDate;
+ this.lastUpdateDate = a.lastUpdateDate;
+ this.description = a.description;
+ this.esId = a.esId;
+ this.artifactLabel = a.artifactLabel;
+ this.artifactCreator = a.artifactCreator;
+ this.mandatory = a.mandatory;
+ this.artifactDisplayName = a.artifactDisplayName;
+ this.apiUrl = a.apiUrl;
+ this.serviceApi = a.serviceApi;
+ this.artifactGroupType = a.artifactGroupType;
+ this.timeout = a.timeout;
+ this.artifactVersion = a.artifactVersion;
+ this.artifactUUID = a.artifactUUID;
+ this.payloadUpdateDate = a.payloadUpdateDate;
+ this.heatParamsUpdateDate = a.heatParamsUpdateDate;
+ this.setGenerated(a.getGenerated());
+ if (a.requiredArtifacts != null)
+ this.requiredArtifacts = new ArrayList<>(a.getRequiredArtifacts());
+ }
+
+ public String getArtifactName() {
+ return artifactName != null ? artifactName : artifactRef;
+ }
+
+ public String getArtifactType() {
+ return artifactType;
+ }
+
+ public void setArtifactType(String artifactType) {
+ this.artifactType = artifactType;
+ }
+
+ public String getArtifactRef() {
+ return artifactRef;
+ }
+
+ public void setArtifactRef(String artifactRef) {
+ this.artifactRef = artifactRef;
+ }
+
+ public String getArtifactRepository() {
+ return artifactRepository;
+ }
+
+ public void setArtifactRepository(String artifactRepository) {
+ this.artifactRepository = artifactRepository;
+ }
+
+ public void setArtifactName(String artifactName) {
+ this.artifactName = artifactName;
+ }
+
+ public String getArtifactChecksum() {
+ return artifactChecksum;
+ }
+
+ public void setArtifactChecksum(String artifactChecksum) {
+ this.artifactChecksum = artifactChecksum;
+ }
+
+ public String getUserIdCreator() {
+ return userIdCreator;
+ }
+
+ public void setUserIdCreator(String userIdCreator) {
+ this.userIdCreator = userIdCreator;
+ }
+
+ public String getUserIdLastUpdater() {
+ return userIdLastUpdater;
+ }
+
+ public void setUserIdLastUpdater(String userIdLastUpdater) {
+ this.userIdLastUpdater = userIdLastUpdater;
+ }
+
+ public String getCreatorFullName() {
+ return creatorFullName;
+ }
+
+ public void setCreatorFullName(String creatorFullName) {
+ this.creatorFullName = creatorFullName;
+ }
+
+ public String getUpdaterFullName() {
+ return updaterFullName;
+ }
+
+ public void setUpdaterFullName(String updaterFullName) {
+ this.updaterFullName = updaterFullName;
+ }
+
+ public Long getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Long creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public Long getLastUpdateDate() {
+ return lastUpdateDate;
+ }
+
+ public void setLastUpdateDate(Long lastUpdateDate) {
+ this.lastUpdateDate = lastUpdateDate;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getArtifactLabel() {
+ return artifactLabel;
+ }
+
+ public void setArtifactLabel(String artifactLabel) {
+ this.artifactLabel = artifactLabel;
+ }
+
+ public String getEsId() {
+ return esId;
+ }
+
+ public void setEsId(String esId) {
+ this.esId = esId;
+ }
+
+ public String getArtifactCreator() {
+ return artifactCreator;
+ }
+
+ public void setArtifactCreator(String artifactCreator) {
+ this.artifactCreator = artifactCreator;
+ }
+
+ public Boolean getMandatory() {
+ return mandatory;
+ }
+
+ public void setMandatory(Boolean mandatory) {
+ this.mandatory = mandatory;
+ }
+
+ public String getArtifactDisplayName() {
+ return artifactDisplayName;
+ }
+
+ public void setArtifactDisplayName(String artifactDisplayName) {
+ this.artifactDisplayName = artifactDisplayName;
+ }
+
+ public String getApiUrl() {
+ return apiUrl;
+ }
+
+ public void setApiUrl(String apiUrl) {
+ this.apiUrl = apiUrl;
+ }
+
+ public Boolean getServiceApi() {
+ return serviceApi;
+ }
+
+ public void setServiceApi(Boolean serviceApi) {
+ this.serviceApi = serviceApi;
+ }
+
+ public ArtifactGroupTypeEnum getArtifactGroupType() {
+ return artifactGroupType;
+ }
+
+ public void setArtifactGroupType(ArtifactGroupTypeEnum artifactGroupType) {
+ this.artifactGroupType = artifactGroupType;
+ }
+
+ public Integer getTimeout() {
+ return timeout;
+ }
+
+ public void setTimeout(Integer timeout) {
+ this.timeout = timeout;
+ }
+
+ public String getArtifactVersion() {
+ return artifactVersion;
+ }
+
+ public void setArtifactVersion(String artifactVersion) {
+ this.artifactVersion = artifactVersion;
+ }
+
+ public String getArtifactUUID() {
+ return artifactUUID;
+ }
+
+ public void setArtifactUUID(String artifactUUID) {
+ this.artifactUUID = artifactUUID;
+ }
+
+ public Long getPayloadUpdateDate() {
+ return payloadUpdateDate;
+ }
+
+ public void setPayloadUpdateDate(Long payloadUpdateDate) {
+ this.payloadUpdateDate = payloadUpdateDate;
+ }
+
+ public Long getHeatParamsUpdateDate() {
+ return heatParamsUpdateDate;
+ }
+
+ public void setHeatParamsUpdateDate(Long heatParamsUpdateDate) {
+ this.heatParamsUpdateDate = heatParamsUpdateDate;
+ }
+
+ public List<String> getRequiredArtifacts() {
+ return requiredArtifacts;
+ }
+
+ public void setRequiredArtifacts(List<String> requiredArtifacts) {
+ this.requiredArtifacts = requiredArtifacts;
+ }
+
+ public Boolean getGenerated() {
+ return generated;
+ }
+
+ public void setGenerated(Boolean generated) {
+ this.generated = generated;
+ }
+
+ @Override
+ public String toString() {
+ return "ArtifactDataDefinition [uniqueId=" + uniqueId + ", artifactType=" + artifactType + ", artifactRef="
+ + artifactRef + ", artifactName=" + artifactName + ", artifactRepository=" + artifactRepository
+ + ", artifactChecksum=" + artifactChecksum + ", userIdCreator=" + userIdCreator + ", userIdLastUpdater="
+ + userIdLastUpdater + ", creatorFullName=" + creatorFullName + ", updaterFullName=" + updaterFullName
+ + ", creationDate=" + creationDate + ", lastUpdateDate=" + lastUpdateDate + ", esId=" + esId
+ + ", artifactLabel=" + artifactLabel + ", artifactCreator=" + artifactCreator + ", description="
+ + description + ", mandatory=" + mandatory + ", artifactDisplayName=" + artifactDisplayName
+ + ", apiUrl=" + apiUrl + ", serviceApi=" + serviceApi + ", artifactGroupType=" + artifactGroupType
+ + ", timeout=" + timeout + ", artifactVersion=" + artifactVersion + ", artifactUUID=" + artifactUUID
+ + ", payloadUpdateDate=" + payloadUpdateDate + ", heatParamsUpdateDate=" + heatParamsUpdateDate
+ + ", requiredArtifacts=" + requiredArtifacts + "]";
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((apiUrl == null) ? 0 : apiUrl.hashCode());
+ result = prime * result + ((artifactChecksum == null) ? 0 : artifactChecksum.hashCode());
+ result = prime * result + ((artifactCreator == null) ? 0 : artifactCreator.hashCode());
+ result = prime * result + ((artifactDisplayName == null) ? 0 : artifactDisplayName.hashCode());
+ result = prime * result + ((artifactGroupType == null) ? 0 : artifactGroupType.hashCode());
+ result = prime * result + ((artifactLabel == null) ? 0 : artifactLabel.hashCode());
+ result = prime * result + ((artifactName == null) ? 0 : artifactName.hashCode());
+ result = prime * result + ((artifactRef == null) ? 0 : artifactRef.hashCode());
+ result = prime * result + ((artifactRepository == null) ? 0 : artifactRepository.hashCode());
+ result = prime * result + ((artifactType == null) ? 0 : artifactType.hashCode());
+ result = prime * result + ((artifactUUID == null) ? 0 : artifactUUID.hashCode());
+ result = prime * result + ((artifactVersion == null) ? 0 : artifactVersion.hashCode());
+ result = prime * result + ((userIdCreator == null) ? 0 : userIdCreator.hashCode());
+ result = prime * result + ((userIdLastUpdater == null) ? 0 : userIdLastUpdater.hashCode());
+ result = prime * result + ((creationDate == null) ? 0 : creationDate.hashCode());
+ result = prime * result + ((creatorFullName == null) ? 0 : creatorFullName.hashCode());
+ result = prime * result + ((description == null) ? 0 : description.hashCode());
+ result = prime * result + ((esId == null) ? 0 : esId.hashCode());
+ result = prime * result + ((heatParamsUpdateDate == null) ? 0 : heatParamsUpdateDate.hashCode());
+ result = prime * result + ((lastUpdateDate == null) ? 0 : lastUpdateDate.hashCode());
+ result = prime * result + ((mandatory == null) ? 0 : mandatory.hashCode());
+ result = prime * result + ((payloadUpdateDate == null) ? 0 : payloadUpdateDate.hashCode());
+ result = prime * result + ((requiredArtifacts == null) ? 0 : requiredArtifacts.hashCode());
+ result = prime * result + ((serviceApi == null) ? 0 : serviceApi.hashCode());
+ result = prime * result + ((timeout == null) ? 0 : timeout.hashCode());
+ result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
+ result = prime * result + ((updaterFullName == null) ? 0 : updaterFullName.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ ArtifactDataDefinition other = (ArtifactDataDefinition) obj;
+ if (apiUrl == null) {
+ if (other.apiUrl != null)
+ return false;
+ } else if (!apiUrl.equals(other.apiUrl))
+ return false;
+ if (artifactChecksum == null) {
+ if (other.artifactChecksum != null)
+ return false;
+ } else if (!artifactChecksum.equals(other.artifactChecksum))
+ return false;
+ if (artifactCreator == null) {
+ if (other.artifactCreator != null)
+ return false;
+ } else if (!artifactCreator.equals(other.artifactCreator))
+ return false;
+ if (artifactDisplayName == null) {
+ if (other.artifactDisplayName != null)
+ return false;
+ } else if (!artifactDisplayName.equals(other.artifactDisplayName))
+ return false;
+ if (artifactGroupType != other.artifactGroupType)
+ return false;
+ if (artifactLabel == null) {
+ if (other.artifactLabel != null)
+ return false;
+ } else if (!artifactLabel.equals(other.artifactLabel))
+ return false;
+ if (artifactName == null) {
+ if (other.artifactName != null)
+ return false;
+ } else if (!artifactName.equals(other.artifactName))
+ return false;
+ if (artifactRef == null) {
+ if (other.artifactRef != null)
+ return false;
+ } else if (!artifactRef.equals(other.artifactRef))
+ return false;
+ if (artifactRepository == null) {
+ if (other.artifactRepository != null)
+ return false;
+ } else if (!artifactRepository.equals(other.artifactRepository))
+ return false;
+ if (artifactType == null) {
+ if (other.artifactType != null)
+ return false;
+ } else if (!artifactType.equals(other.artifactType))
+ return false;
+ if (artifactUUID == null) {
+ if (other.artifactUUID != null)
+ return false;
+ } else if (!artifactUUID.equals(other.artifactUUID))
+ return false;
+ if (artifactVersion == null) {
+ if (other.artifactVersion != null)
+ return false;
+ } else if (!artifactVersion.equals(other.artifactVersion))
+ return false;
+ if (userIdCreator == null) {
+ if (other.userIdCreator != null)
+ return false;
+ } else if (!userIdCreator.equals(other.userIdCreator))
+ return false;
+ if (userIdLastUpdater == null) {
+ if (other.userIdLastUpdater != null)
+ return false;
+ } else if (!userIdLastUpdater.equals(other.userIdLastUpdater))
+ return false;
+ if (creationDate == null) {
+ if (other.creationDate != null)
+ return false;
+ } else if (!creationDate.equals(other.creationDate))
+ return false;
+ if (creatorFullName == null) {
+ if (other.creatorFullName != null)
+ return false;
+ } else if (!creatorFullName.equals(other.creatorFullName))
+ return false;
+ if (description == null) {
+ if (other.description != null)
+ return false;
+ } else if (!description.equals(other.description))
+ return false;
+ if (esId == null) {
+ if (other.esId != null)
+ return false;
+ } else if (!esId.equals(other.esId))
+ return false;
+ if (heatParamsUpdateDate == null) {
+ if (other.heatParamsUpdateDate != null)
+ return false;
+ } else if (!heatParamsUpdateDate.equals(other.heatParamsUpdateDate))
+ return false;
+ if (lastUpdateDate == null) {
+ if (other.lastUpdateDate != null)
+ return false;
+ } else if (!lastUpdateDate.equals(other.lastUpdateDate))
+ return false;
+ if (mandatory == null) {
+ if (other.mandatory != null)
+ return false;
+ } else if (!mandatory.equals(other.mandatory))
+ return false;
+ if (payloadUpdateDate == null) {
+ if (other.payloadUpdateDate != null)
+ return false;
+ } else if (!payloadUpdateDate.equals(other.payloadUpdateDate))
+ return false;
+ if (requiredArtifacts == null) {
+ if (other.requiredArtifacts != null)
+ return false;
+ } else if (!requiredArtifacts.equals(other.requiredArtifacts))
+ return false;
+ if (serviceApi == null) {
+ if (other.serviceApi != null)
+ return false;
+ } else if (!serviceApi.equals(other.serviceApi))
+ return false;
+ if (timeout == null) {
+ if (other.timeout != null)
+ return false;
+ } else if (!timeout.equals(other.timeout))
+ return false;
+ if (uniqueId == null) {
+ if (other.uniqueId != null)
+ return false;
+ } else if (!uniqueId.equals(other.uniqueId))
+ return false;
+ if (updaterFullName == null) {
+ if (other.updaterFullName != null)
+ return false;
+ } else if (!updaterFullName.equals(other.updaterFullName))
+ return false;
+ return true;
+ }
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
new file mode 100644
index 0000000000..b52824697a
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
@@ -0,0 +1,186 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.Objects;
+
+/**
+ * Represents AttributeDataDefinition
+ *
+ * @author mshitrit
+ *
+ */
+public class AttributeDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -3046831950009259569L;
+
+ private String uniqueId;
+ private String name;
+ private String type;
+ private String description;
+
+ private String defaultValue;
+ private String value;
+
+ private String status;
+ private SchemaDefinition schema;
+
+ public AttributeDataDefinition() {
+ // Used From Attribute Defenition
+ }
+
+ /**
+ * Clone Constructor
+ *
+ * @param attribute
+ */
+ public AttributeDataDefinition(AttributeDataDefinition attribute) {
+ this.uniqueId = attribute.uniqueId;
+ this.name = attribute.name;
+ this.type = attribute.type;
+ this.description = attribute.description;
+ this.defaultValue = attribute.defaultValue;
+ this.value = attribute.value;
+ this.status = attribute.status;
+ this.schema = attribute.schema;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public SchemaDefinition getSchema() {
+ return schema;
+ }
+
+ public void setSchema(SchemaDefinition entrySchema) {
+ this.schema = entrySchema;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((defaultValue == null) ? 0 : defaultValue.hashCode());
+ result = prime * result + ((value == null) ? 0 : value.hashCode());
+ result = prime * result + ((description == null) ? 0 : description.hashCode());
+ result = prime * result + ((name == null) ? 0 : name.hashCode());
+ result = prime * result + ((type == null) ? 0 : type.hashCode());
+ result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
+ result = prime * result + ((status == null) ? 0 : status.hashCode());
+ result = prime * result + ((schema == null) ? 0 : schema.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ boolean equals = true;
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null || getClass() != obj.getClass()) {
+ return false;
+ }
+
+ AttributeDataDefinition other = (AttributeDataDefinition) obj;
+ if (!Objects.equals(defaultValue, other.defaultValue)) {
+ equals = false;
+ } else if (!Objects.equals(value, other.value)) {
+ equals = false;
+ } else if (!Objects.equals(description, other.description)) {
+ equals = false;
+ } else if (!Objects.equals(name, other.name)) {
+ equals = false;
+ } else if (!Objects.equals(type, other.type)) {
+ equals = false;
+ } else if (!Objects.equals(uniqueId, other.uniqueId)) {
+ equals = false;
+ } else if (!Objects.equals(status, other.status)) {
+ equals = false;
+ } else if (!Objects.equals(schema, other.schema)) {
+ equals = false;
+ }
+ return equals;
+ }
+
+ @Override
+ public String toString() {
+ return "AttributeDataDefinition [uniqueId=" + uniqueId + ", name=" + name + ", type=" + type + ", description="
+ + description + ", defaultValue=" + defaultValue + ", value=" + value + ", status=" + status
+ + ", entrySchema=" + schema + "]";
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/CapabilityTypeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/CapabilityTypeDataDefinition.java
new file mode 100644
index 0000000000..f4de5b8c9d
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/CapabilityTypeDataDefinition.java
@@ -0,0 +1,128 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class CapabilityTypeDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 3242123405337612089L;
+
+ private String uniqueId;
+
+ private String description;
+
+ /** Identifies the type of the capability. */
+ private String type;
+
+ private List<String> validSourceTypes;
+
+ private String version;
+
+ private Long creationTime;
+
+ private Long modificationTime;
+
+ // private String derivedFrom;
+
+ public CapabilityTypeDataDefinition(CapabilityTypeDataDefinition cdt) {
+ super();
+ this.uniqueId = cdt.getUniqueId();
+ this.description = cdt.getDescription();
+ this.type = cdt.getType();
+ this.validSourceTypes = cdt.getValidSourceTypes();
+ this.version = cdt.getVersion();
+ this.creationTime = cdt.getCreationTime();
+ this.modificationTime = cdt.getModificationTime();
+ }
+
+ public CapabilityTypeDataDefinition() {
+
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public List<String> getValidSourceTypes() {
+ return validSourceTypes;
+ }
+
+ public void setValidSourceTypes(List<String> validSourceTypes) {
+ this.validSourceTypes = validSourceTypes;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ @Override
+ public String toString() {
+ return "CapabilityTypeDataDefinition [uniqueId=" + uniqueId + ", description=" + description + ", type=" + type
+ + ", validSourceTypes=" + validSourceTypes + ", version=" + version + ", creationTime=" + creationTime
+ + ", modificationTime=" + modificationTime + "]";
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java
new file mode 100644
index 0000000000..c9a9516f21
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java
@@ -0,0 +1,187 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+import org.openecomp.sdc.be.datatypes.enums.OriginTypeEnum;
+
+public class ComponentInstanceDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 7215033872921497743L;
+
+ private String uniqueId;
+
+ private String name;
+ private String normalizedName;
+
+ private String componentUid;
+
+ private Long creationTime;
+
+ private Long modificationTime;
+
+ private String description;
+
+ private String posX;
+
+ private String posY;
+ private Integer propertyValueCounter = 1;
+ private Integer attributeValueCounter;
+ private Integer inputValueCounter = 1;
+ private OriginTypeEnum originType;
+
+ public ComponentInstanceDataDefinition() {
+ super();
+ }
+
+ public ComponentInstanceDataDefinition(ComponentInstanceDataDefinition dataDefinition) {
+ this.uniqueId = dataDefinition.uniqueId;
+ this.name = dataDefinition.name;
+ this.componentUid = dataDefinition.componentUid;
+ this.creationTime = dataDefinition.creationTime;
+ this.modificationTime = dataDefinition.modificationTime;
+ this.description = dataDefinition.description;
+ this.posX = dataDefinition.posX;
+ this.posY = dataDefinition.posY;
+ this.propertyValueCounter = dataDefinition.propertyValueCounter;
+ this.normalizedName = dataDefinition.normalizedName;
+ this.originType = dataDefinition.originType;
+
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getPosX() {
+ return posX;
+ }
+
+ public void setPosX(String posX) {
+ this.posX = posX;
+ }
+
+ public String getPosY() {
+ return posY;
+ }
+
+ public void setPosY(String posY) {
+ this.posY = posY;
+ }
+
+ public String getComponentUid() {
+ return componentUid;
+ }
+
+ public void setComponentUid(String resourceUid) {
+ this.componentUid = resourceUid;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Integer getPropertyValueCounter() {
+ return propertyValueCounter;
+ }
+
+ public void setPropertyValueCounter(Integer propertyValueCounter) {
+ this.propertyValueCounter = propertyValueCounter;
+ }
+
+ public String getNormalizedName() {
+ return normalizedName;
+ }
+
+ public void setNormalizedName(String normalizedName) {
+ this.normalizedName = normalizedName;
+ }
+
+ public OriginTypeEnum getOriginType() {
+ return originType;
+ }
+
+ public void setOriginType(OriginTypeEnum originType) {
+ this.originType = originType;
+ }
+
+ @Override
+ public String toString() {
+ return "ComponentInstanceDataDefinition [uniqueId=" + uniqueId + ", name=" + name + ", normalizedName="
+ + normalizedName + ", componentUid=" + componentUid + ", creationTime=" + creationTime
+ + ", modificationTime=" + modificationTime + ", description=" + description + ", posX=" + posX
+ + ", posY=" + posY + ", propertyValueCounter=" + propertyValueCounter + ", originType=" + originType
+ + "]";
+ }
+
+ public Integer getAttributeValueCounter() {
+ return attributeValueCounter;
+ }
+
+ public void setAttributeValueCounter(Integer attributeValueCounter) {
+ this.attributeValueCounter = attributeValueCounter;
+ }
+
+ public Integer getInputValueCounter() {
+ return inputValueCounter;
+ }
+
+ public void setInputValueCounter(Integer inputValueCounter) {
+ this.inputValueCounter = inputValueCounter;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ConsumerDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ConsumerDataDefinition.java
new file mode 100644
index 0000000000..6cd7d6c0fb
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ConsumerDataDefinition.java
@@ -0,0 +1,204 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+public class ConsumerDataDefinition {
+
+ // ECOMP Consumer Name - UTF-8 string up to 255 characters containing the
+ // following characters : ( maybe to limit 4-64 chars ? )
+ // Lowercase characters {a-z}
+ // Uppercase characters {A-Z}
+ // Numbers {0-9}
+ // Dash {-}; this character is not supported as the first character in the
+ // user name
+ // Period {.}; this character is not supported as the first character in the
+ // user name
+ // Underscore {_}
+ // * ECOMP Consumer Password - expected to be SHA-2 256 encrypted value (
+ // SALT + "real" password ) => maximal length 256 bytes = 32 characters
+ // Before storing/comparing please convert upper case letter to lower.
+ // The "normalized" encrypted password should match the following format :
+ // [a-z0-9]{32} = alphanumeric string
+ //
+ // * ECOMP Consumer Salt - alphanumeric string [a-z0-9] , length = 32 chars.
+ // * ECOMP Consumer Last Authentication Time ( for future use) -
+ // time when ECOMP Consumer was authenticated for the last time in
+ // milliseconds from 1970 (GMT) - should be set to "0" on creation .
+ // * ECOMP Consumer Details Last updated time - time of the last update in
+ // milliseconds from 1970 (GMT)
+ // * USER_ID - USER_ID of the last user that created/updated credentials (
+ // should be retrieved from USER_ID header)
+ private String consumerName;
+ private String consumerPassword;
+ private String consumerSalt;
+ private Long consumerLastAuthenticationTime;
+ private Long consumerDetailsLastupdatedtime;
+ private String lastModfierAtuid;
+
+ public ConsumerDataDefinition() {
+
+ }
+
+ public ConsumerDataDefinition(ConsumerDataDefinition a) {
+ this.consumerName = a.consumerName;
+ this.consumerPassword = a.consumerPassword;
+ this.consumerSalt = a.consumerSalt;
+ this.consumerLastAuthenticationTime = a.consumerLastAuthenticationTime;
+ this.consumerDetailsLastupdatedtime = a.consumerDetailsLastupdatedtime;
+ this.lastModfierAtuid = a.lastModfierAtuid;
+
+ }
+
+ public String getConsumerName() {
+ return consumerName;
+ }
+
+ public void setConsumerName(String consumerName) {
+ this.consumerName = consumerName;
+ }
+
+ public String getConsumerPassword() {
+ return consumerPassword;
+ }
+
+ public void setConsumerPassword(String consumerPassword) {
+ this.consumerPassword = consumerPassword;
+ }
+
+ public String getConsumerSalt() {
+ return consumerSalt;
+ }
+
+ public void setConsumerSalt(String consumerSalt) {
+ this.consumerSalt = consumerSalt;
+ }
+
+ public Long getConsumerLastAuthenticationTime() {
+ return consumerLastAuthenticationTime;
+ }
+
+ public void setConsumerLastAuthenticationTime(Long consumerLastAuthenticationTime) {
+ this.consumerLastAuthenticationTime = consumerLastAuthenticationTime;
+ }
+
+ public Long getConsumerDetailsLastupdatedtime() {
+ return consumerDetailsLastupdatedtime;
+ }
+
+ public void setConsumerDetailsLastupdatedtime(Long consumerDetailsLastupdatedtime) {
+ this.consumerDetailsLastupdatedtime = consumerDetailsLastupdatedtime;
+ }
+
+ public String getLastModfierAtuid() {
+ return lastModfierAtuid;
+ }
+
+ public void setLastModfierAtuid(String lastModfierAtuid) {
+ this.lastModfierAtuid = lastModfierAtuid;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("ConsumerDataDefinition [").append("consumerName=").append(consumerName).append(",")
+ .append("consumerPassword=").append(consumerPassword).append(",").append("consumerSalt=")
+ .append(consumerSalt).append(",").append("consumerLastAuthenticationTime=")
+ .append(consumerLastAuthenticationTime).append(",").append("consumerDetailsLastupdatedtime=")
+ .append(consumerDetailsLastupdatedtime).append(",").append("lastModfierAtuid=").append(lastModfierAtuid)
+ .append("]");
+ return sb.toString();
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((consumerName == null) ? 0 : consumerName.hashCode());
+ result = prime * result + ((consumerPassword == null) ? 0 : consumerPassword.hashCode());
+ result = prime * result + ((consumerSalt == null) ? 0 : consumerSalt.hashCode());
+ result = prime * result
+ + ((consumerLastAuthenticationTime == null) ? 0 : consumerLastAuthenticationTime.hashCode());
+ result = prime * result
+ + ((consumerDetailsLastupdatedtime == null) ? 0 : consumerDetailsLastupdatedtime.hashCode());
+ result = prime * result + ((lastModfierAtuid == null) ? 0 : lastModfierAtuid.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ ConsumerDataDefinition other = (ConsumerDataDefinition) obj;
+ if (consumerName == null) {
+ if (other.consumerName != null) {
+ return false;
+ }
+ } else if (!consumerName.equals(other.consumerName)) {
+ return false;
+ }
+ if (consumerPassword == null) {
+ if (other.consumerPassword != null) {
+ return false;
+ }
+ } else if (!consumerPassword.equals(other.consumerPassword)) {
+ return false;
+ }
+
+ if (consumerSalt == null) {
+ if (other.consumerSalt != null) {
+ return false;
+ }
+ } else if (!consumerSalt.equals(other.consumerSalt)) {
+ return false;
+ }
+
+ if (consumerLastAuthenticationTime == null) {
+ if (other.consumerLastAuthenticationTime != null) {
+ return false;
+ }
+ } else if (!consumerLastAuthenticationTime.equals(other.consumerLastAuthenticationTime)) {
+ return false;
+ }
+
+ if (consumerDetailsLastupdatedtime == null) {
+ if (other.consumerDetailsLastupdatedtime != null) {
+ return false;
+ }
+ } else if (!consumerDetailsLastupdatedtime.equals(other.consumerDetailsLastupdatedtime)) {
+ return false;
+ }
+
+ if (lastModfierAtuid == null) {
+ if (other.lastModfierAtuid != null) {
+ return false;
+ }
+ } else if (!lastModfierAtuid.equals(other.lastModfierAtuid)) {
+ return false;
+ }
+
+ return true;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/DataTypeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/DataTypeDataDefinition.java
new file mode 100644
index 0000000000..bfcfefc433
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/DataTypeDataDefinition.java
@@ -0,0 +1,119 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+public class DataTypeDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1751768352205892172L;
+
+ private String name;
+
+ private String uniqueId;
+
+ // "boolean", "string", "float", "integer", "version" })
+ private String derivedFromName;
+
+ private String description;
+
+ /**
+ * Timestamp of data type creation
+ */
+ private Long creationTime;
+
+ /**
+ * Timestamp of the data type last update
+ */
+ private Long modificationTime;
+
+ public DataTypeDataDefinition() {
+
+ }
+
+ public DataTypeDataDefinition(DataTypeDataDefinition p) {
+ this.name = p.name;
+ this.uniqueId = p.uniqueId;
+ this.derivedFromName = p.derivedFromName;
+ this.description = p.description;
+ this.creationTime = p.creationTime;
+ this.modificationTime = p.modificationTime;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDerivedFromName() {
+ return derivedFromName;
+ }
+
+ public void setDerivedFromName(String derivedFromName) {
+ this.derivedFromName = derivedFromName;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ @Override
+ public String toString() {
+ return "DataTypeDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", derivedFromName="
+ + derivedFromName + ", description=" + description + ", creationTime=" + creationTime
+ + ", modificationTime=" + modificationTime + "]";
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupDataDefinition.java
new file mode 100644
index 0000000000..be3dd8c0ed
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupDataDefinition.java
@@ -0,0 +1,142 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+public class GroupDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1565606165279109427L;
+
+ private String name;
+
+ // the id is unique per group instance on graph.
+ private String uniqueId;
+
+ private String type;
+
+ // version should be changed when there is a change to the group's metadata
+ // or to the groups members
+ // (not necessarily when the VF version is changed). This field cannot be
+ // updated by user
+ private String version;
+
+ // this id is constant and does not changed (also not when changing
+ // version). This field cannot be updated by user
+ private String invariantUUID;
+
+ // the group UUID should be changed when one of the artifacts/component
+ // instances has been changed.
+ private String groupUUID;
+
+ private String description;
+
+ private Integer propertyValueCounter = 0;
+
+ public GroupDataDefinition() {
+
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public String getInvariantUUID() {
+ return invariantUUID;
+ }
+
+ public void setInvariantUUID(String invariantUUID) {
+ this.invariantUUID = invariantUUID;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Integer getPropertyValueCounter() {
+ return propertyValueCounter;
+ }
+
+ public void setPropertyValueCounter(Integer propertyValueCounter) {
+ this.propertyValueCounter = propertyValueCounter;
+ }
+
+ public String getGroupUUID() {
+ return groupUUID;
+ }
+
+ public void setGroupUUID(String groupUUID) {
+ this.groupUUID = groupUUID;
+ }
+
+ public GroupDataDefinition(GroupDataDefinition other) {
+ this.name = other.name;
+ this.uniqueId = other.uniqueId;
+ this.type = other.type;
+ this.version = other.version;
+ this.invariantUUID = other.invariantUUID;
+ this.description = other.description;
+ this.propertyValueCounter = other.propertyValueCounter;
+ this.groupUUID = other.groupUUID;
+ }
+
+ @Override
+ public String toString() {
+ return "GroupDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", type=" + type + ", version="
+ + version + ", invariantUUID=" + invariantUUID + ", description=" + description
+ + ", propertyValueCounter=" + propertyValueCounter + ", groupUUID=" + groupUUID + "]";
+ }
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupTypeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupTypeDataDefinition.java
new file mode 100644
index 0000000000..1642d17252
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/GroupTypeDataDefinition.java
@@ -0,0 +1,163 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
+public class GroupTypeDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -7001817818907172496L;
+
+ private String uniqueId;
+
+ private String type;
+
+ private String version;
+
+ private String derivedFrom;
+
+ private List<String> members;
+
+ private Map<String, String> metadata;
+
+ private String description;
+
+ /**
+ * Timestamp of data type creation
+ */
+ private Long creationTime;
+
+ /**
+ * Timestamp of the data type last update
+ */
+ private Long modificationTime;
+
+ private boolean highestVersion;
+
+ public GroupTypeDataDefinition() {
+
+ }
+
+ public GroupTypeDataDefinition(GroupTypeDataDefinition p) {
+ this.uniqueId = p.uniqueId;
+ this.type = p.type;
+ this.version = p.version;
+ this.members = p.members;
+ this.metadata = p.metadata;
+ // this.derivedFromName = p.derivedFromName;
+ this.description = p.description;
+ this.creationTime = p.creationTime;
+ this.modificationTime = p.modificationTime;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public List<String> getMembers() {
+ return members;
+ }
+
+ public void setMembers(List<String> members) {
+ this.members = members;
+ }
+
+ public Map<String, String> getMetadata() {
+ return metadata;
+ }
+
+ public void setMetadata(Map<String, String> metadata) {
+ this.metadata = metadata;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ @Override
+ public String toString() {
+ return "GroupTypeDataDefinition [uniqueId=" + uniqueId + ", type=" + type + ", version=" + version
+ + ", members=" + members + ", metadata=" + metadata + ", description=" + description + ", creationTime="
+ + creationTime + ", modificationTime=" + modificationTime + "]";
+ }
+
+ public String getDerivedFrom() {
+ return derivedFrom;
+ }
+
+ public void setDerivedFrom(String derivedFrom) {
+ this.derivedFrom = derivedFrom;
+ }
+
+ public boolean isHighestVersion() {
+ return highestVersion;
+ }
+
+ public void setHighestVersion(boolean isLatestVersion) {
+ this.highestVersion = isLatestVersion;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/HeatParameterDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/HeatParameterDataDefinition.java
new file mode 100644
index 0000000000..a84485bef6
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/HeatParameterDataDefinition.java
@@ -0,0 +1,162 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+public class HeatParameterDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 8995421762148502848L;
+
+ String uniqueId;
+
+ String name;
+ String type;
+ String description;
+
+ String currentValue;
+ String defaultValue;
+
+ public HeatParameterDataDefinition() {
+ }
+
+ public HeatParameterDataDefinition(HeatParameterDataDefinition hp) {
+ this.uniqueId = hp.uniqueId;
+ this.name = hp.name;
+ this.type = hp.type;
+ this.description = hp.description;
+ this.currentValue = hp.currentValue;
+ this.defaultValue = hp.defaultValue;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getCurrentValue() {
+ return currentValue;
+ }
+
+ public void setCurrentValue(String currentValue) {
+ this.currentValue = currentValue;
+ }
+
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ @Override
+ public String toString() {
+ return "HeatParameterDataDefinition [uniqueId=" + uniqueId + ", name=" + name + ", type=" + type
+ + ", description=" + description + ", currentValue=" + currentValue + ", defaultValue=" + defaultValue
+ + "]";
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((currentValue == null) ? 0 : currentValue.hashCode());
+ result = prime * result + ((defaultValue == null) ? 0 : defaultValue.hashCode());
+ result = prime * result + ((description == null) ? 0 : description.hashCode());
+ result = prime * result + ((name == null) ? 0 : name.hashCode());
+ result = prime * result + ((type == null) ? 0 : type.hashCode());
+ result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ HeatParameterDataDefinition other = (HeatParameterDataDefinition) obj;
+ if (currentValue == null) {
+ if (other.currentValue != null)
+ return false;
+ } else if (!currentValue.equals(other.currentValue))
+ return false;
+ if (defaultValue == null) {
+ if (other.defaultValue != null)
+ return false;
+ } else if (!defaultValue.equals(other.defaultValue))
+ return false;
+ if (description == null) {
+ if (other.description != null)
+ return false;
+ } else if (!description.equals(other.description))
+ return false;
+ if (name == null) {
+ if (other.name != null)
+ return false;
+ } else if (!name.equals(other.name))
+ return false;
+ if (type == null) {
+ if (other.type != null)
+ return false;
+ } else if (!type.equals(other.type))
+ return false;
+ if (uniqueId == null) {
+ if (other.uniqueId != null)
+ return false;
+ } else if (!uniqueId.equals(other.uniqueId))
+ return false;
+ return true;
+ }
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InputsValueDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InputsValueDataDefinition.java
new file mode 100644
index 0000000000..87c163a3ae
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InputsValueDataDefinition.java
@@ -0,0 +1,63 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+public class InputsValueDataDefinition {
+ private String name;
+ private String value;
+ private String uniqueId;
+
+ public InputsValueDataDefinition(String name, String value) {
+ super();
+ this.name = name;
+ this.value = value;
+ }
+
+ public InputsValueDataDefinition() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinition.java
new file mode 100644
index 0000000000..46c1ede031
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/InterfaceDataDefinition.java
@@ -0,0 +1,109 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+
+public class InterfaceDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 2208369368489725049L;
+
+ private String type;
+
+ private String description;
+
+ private String uniqueId;
+
+ /**
+ * Timestamp of the resource (artifact) creation
+ */
+ private Long creationDate;
+
+ /**
+ * Timestamp of the last resource (artifact) creation
+ */
+ private Long lastUpdateDate;
+
+ public InterfaceDataDefinition() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ public InterfaceDataDefinition(String type, String description) {
+ super();
+ this.type = type;
+ this.description = description;
+
+ }
+
+ public InterfaceDataDefinition(InterfaceDataDefinition p) {
+ this.uniqueId = p.uniqueId;
+ this.type = p.type;
+ this.description = p.description;
+
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public Long getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Long creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public Long getLastUpdateDate() {
+ return lastUpdateDate;
+ }
+
+ public void setLastUpdateDate(Long lastUpdateDate) {
+ this.lastUpdateDate = lastUpdateDate;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationDataDefinition.java
new file mode 100644
index 0000000000..12c069b142
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationDataDefinition.java
@@ -0,0 +1,96 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+public class OperationDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1951516966187326915L;
+
+ private String uniqueId;
+
+ /**
+ * Timestamp of the resource (artifact) creation
+ */
+ private Long creationDate;
+
+ /**
+ * Timestamp of the last resource (artifact) creation
+ */
+ private Long lastUpdateDate;
+
+ /** Description of the operation. */
+ private String description;
+
+ public OperationDataDefinition() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ public OperationDataDefinition(String description) {
+ super();
+ this.description = description;
+
+ }
+
+ public OperationDataDefinition(OperationDataDefinition p) {
+ this.uniqueId = p.uniqueId;
+ this.description = p.description;
+
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public Long getCreationDate() {
+ return creationDate;
+ }
+
+ public void setCreationDate(Long creationDate) {
+ this.creationDate = creationDate;
+ }
+
+ public Long getLastUpdateDate() {
+ return lastUpdateDate;
+ }
+
+ public void setLastUpdateDate(Long lastUpdateDate) {
+ this.lastUpdateDate = lastUpdateDate;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PolicyTypeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PolicyTypeDataDefinition.java
new file mode 100644
index 0000000000..9b2b0659b1
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PolicyTypeDataDefinition.java
@@ -0,0 +1,163 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
+public class PolicyTypeDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -3783390539788578388L;
+
+ private String uniqueId;
+
+ private String type;
+
+ private String version;
+
+ private String derivedFrom;
+
+ private List<String> targets;
+
+ private Map<String, String> metadata;
+
+ private String description;
+
+ /**
+ * Timestamp of data type creation
+ */
+ private Long creationTime;
+
+ /**
+ * Timestamp of the data type last update
+ */
+ private Long modificationTime;
+
+ private boolean highestVersion;
+
+ public PolicyTypeDataDefinition() {
+
+ }
+
+ public PolicyTypeDataDefinition(PolicyTypeDataDefinition p) {
+ this.uniqueId = p.uniqueId;
+ this.type = p.type;
+ this.version = p.version;
+ this.targets = p.targets;
+ this.metadata = p.metadata;
+ // this.derivedFromName = p.derivedFromName;
+ this.description = p.description;
+ this.creationTime = p.creationTime;
+ this.modificationTime = p.modificationTime;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public List<String> getTargets() {
+ return targets;
+ }
+
+ public void setTargets(List<String> members) {
+ this.targets = members;
+ }
+
+ public Map<String, String> getMetadata() {
+ return metadata;
+ }
+
+ public void setMetadata(Map<String, String> metadata) {
+ this.metadata = metadata;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ @Override
+ public String toString() {
+ return "PolicyTypeDataDefinition [uniqueId=" + uniqueId + ", type=" + type + ", version=" + version
+ + ", targets=" + targets + ", metadata=" + metadata + ", description=" + description + ", creationTime="
+ + creationTime + ", modificationTime=" + modificationTime + "]";
+ }
+
+ public String getDerivedFrom() {
+ return derivedFrom;
+ }
+
+ public void setDerivedFrom(String derivedFrom) {
+ this.derivedFrom = derivedFrom;
+ }
+
+ public boolean isHighestVersion() {
+ return highestVersion;
+ }
+
+ public void setHighestVersion(boolean isLatestVersion) {
+ this.highestVersion = isLatestVersion;
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinition.java
new file mode 100644
index 0000000000..3f044c1d46
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ProductMetadataDataDefinition.java
@@ -0,0 +1,126 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.openecomp.sdc.be.datatypes.components.ComponentMetadataDataDefinition;
+
+public class ProductMetadataDataDefinition extends ComponentMetadataDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1877577227290771160L;
+
+ private String fullName;
+
+ private List<String> contacts;
+
+ private Boolean isActive;
+
+ public ProductMetadataDataDefinition() {
+ super();
+ }
+
+ public ProductMetadataDataDefinition(ProductMetadataDataDefinition other) {
+ super(other);
+ }
+
+ public Boolean getIsActive() {
+ return isActive;
+ }
+
+ public void setIsActive(Boolean active) {
+ isActive = active;
+ }
+
+ public List<String> getContacts() {
+ return contacts;
+ }
+
+ public void setContacts(List<String> contacts) {
+ this.contacts = contacts;
+ }
+
+ public void addContact(String contact) {
+ if (contact != null) {
+ if (contacts == null) {
+ contacts = new ArrayList<>();
+ }
+ contacts.add(contact);
+ }
+ }
+
+ public String getFullName() {
+ return fullName;
+ }
+
+ public void setFullName(String fullName) {
+ this.fullName = fullName;
+ }
+
+ @Override
+ public String toString() {
+ return "ProductMetadataDataDefinition [fullName=" + fullName + ", contacts=" + contacts + ", isActive="
+ + isActive + "]";
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = super.hashCode();
+
+ result = prime * result + ((contacts == null) ? 0 : contacts.hashCode());
+ result = prime * result + ((fullName == null) ? 0 : fullName.hashCode());
+ result = prime * result + ((isActive == null) ? 0 : isActive.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (!super.equals(obj))
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ ProductMetadataDataDefinition other = (ProductMetadataDataDefinition) obj;
+ if (contacts == null) {
+ if (other.contacts != null)
+ return false;
+ } else if (!contacts.equals(other.contacts))
+ return false;
+ if (fullName == null) {
+ if (other.fullName != null)
+ return false;
+ } else if (!fullName.equals(other.fullName))
+ return false;
+ if (isActive == isActive) {
+ if (other.isActive != null)
+ return false;
+ } else if (!isActive.equals(other.isActive))
+ return false;
+ return super.equals(obj);
+ }
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java
new file mode 100644
index 0000000000..c522f3e0e9
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyDataDefinition.java
@@ -0,0 +1,195 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+
+public class PropertyDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 5798685557528432389L;
+
+ private String uniqueId;
+
+ // "boolean", "string", "float", "integer", "version" })
+ private String type;
+
+ private Boolean required;
+
+ protected boolean definition = false;
+
+ private String defaultValue;
+
+ private String description;
+
+ private SchemaDefinition schema;
+
+ private boolean password;
+
+ public PropertyDataDefinition() {
+
+ }
+
+ public PropertyDataDefinition(PropertyDataDefinition p) {
+ this.uniqueId = p.uniqueId;
+ this.required = p.required;
+ this.defaultValue = p.defaultValue;
+ this.description = p.description;
+ this.schema = p.schema;
+ this.password = p.password;
+ this.type = p.type;
+ }
+
+ // @Override
+ public boolean isDefinition() {
+ return true;
+ }
+
+ public void setDefinition(boolean definition) {
+ this.definition = definition;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public Boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(Boolean required) {
+ this.required = required;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean isPassword() {
+ return password;
+ }
+
+ public void setPassword(boolean password) {
+ this.password = password;
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public SchemaDefinition getSchema() {
+ return schema;
+ }
+
+ public void setSchema(SchemaDefinition entrySchema) {
+ this.schema = entrySchema;
+ }
+
+ @Override
+ public String toString() {
+ return "PropertyDataDefinition [uniqueId=" + uniqueId + ", type=" + type + ", required=" + required
+ + ", defaultValue=" + defaultValue + ", description=" + description + ", entrySchema=" + schema
+ + ", password=" + password + "]";
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((defaultValue == null) ? 0 : defaultValue.hashCode());
+ result = prime * result + (definition ? 1231 : 1237);
+ result = prime * result + ((description == null) ? 0 : description.hashCode());
+ result = prime * result + (password ? 1231 : 1237);
+ result = prime * result + ((required == null) ? 0 : required.hashCode());
+ result = prime * result + ((schema == null) ? 0 : schema.hashCode());
+ result = prime * result + ((type == null) ? 0 : type.hashCode());
+ result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ PropertyDataDefinition other = (PropertyDataDefinition) obj;
+ if (defaultValue == null) {
+ if (other.defaultValue != null)
+ return false;
+ } else if (!defaultValue.equals(other.defaultValue))
+ return false;
+ if (definition != other.definition)
+ return false;
+ if (description == null) {
+ if (other.description != null)
+ return false;
+ } else if (!description.equals(other.description))
+ return false;
+ if (password != other.password)
+ return false;
+ if (required == null) {
+ if (other.required != null)
+ return false;
+ } else if (!required.equals(other.required))
+ return false;
+ if (schema == null) {
+ if (other.schema != null)
+ return false;
+ } else if (!schema.equals(other.schema))
+ return false;
+ if (type == null) {
+ if (other.type != null)
+ return false;
+ } else if (!type.equals(other.type))
+ return false;
+ if (uniqueId == null) {
+ if (other.uniqueId != null)
+ return false;
+ } else if (!uniqueId.equals(other.uniqueId))
+ return false;
+ return true;
+ }
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java
new file mode 100644
index 0000000000..c9ef85ac66
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/PropertyRule.java
@@ -0,0 +1,136 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.List;
+import org.codehaus.jackson.annotate.JsonIgnore;
+
+public class PropertyRule implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -3357933382124599996L;
+
+ public static String FORCE_ALL = "FORCE_ALL";
+ public static String ALL = "ALL";
+ public static String RULE_ANY_MATCH = ".+";
+
+ List<String> rule;
+ String value;
+
+ public PropertyRule() {
+ super();
+ }
+
+ public PropertyRule(List<String> rule, String value) {
+ super();
+ this.rule = rule;
+ this.value = value;
+ }
+
+ public List<String> getRule() {
+ return rule;
+ }
+
+ public void setRule(List<String> rule) {
+ this.rule = rule;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ @JsonIgnore
+ public String getFirstToken() {
+ return getToken(1);
+ }
+
+ public String getToken(int tokenNumber) {
+
+ int index = tokenNumber - 1;
+ if (rule == null || index >= rule.size() || index < 0) {
+ return null;
+ }
+
+ return rule.get(index);
+ }
+
+ @JsonIgnore
+ public int getRuleSize() {
+ if (rule == null) {
+ return 0;
+ }
+ return rule.size();
+ }
+
+ @Override
+ public String toString() {
+ return "PropertyRule [rule=" + rule + ", value=" + value + "]";
+ }
+
+ public boolean compareRule(PropertyRule comparedPropertyRule) {
+
+ if (comparedPropertyRule == null) {
+ return false;
+ }
+
+ List<String> comparedRule = comparedPropertyRule.getRule();
+ if (rule == null && comparedRule == null) {
+ return true;
+ }
+
+ if (rule != null && comparedRule != null) {
+ if (rule.size() != comparedRule.size()) {
+ return false;
+ } else {
+ int size = rule.size();
+ boolean isEqual = true;
+ for (int i = 0; i < size; i++) {
+ String item = rule.get(i);
+ String comparedItem = comparedRule.get(i);
+ if (item == null || false == item.equals(comparedItem)) {
+ isEqual = false;
+ break;
+ }
+ }
+ return isEqual;
+ }
+ } else {
+ return false;
+ }
+
+ }
+
+ public void replaceFirstToken(String token) {
+
+ if (rule != null && rule.size() > 0) {
+ rule.set(0, token);
+ }
+
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/RelationshipTypeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/RelationshipTypeDataDefinition.java
new file mode 100644
index 0000000000..0f7c56842f
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/RelationshipTypeDataDefinition.java
@@ -0,0 +1,128 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class RelationshipTypeDataDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1104043358598884458L;
+
+ private String uniqueId;
+
+ private String description;
+
+ /** Identifies the type of the capability. */
+ private String type;
+
+ private List<String> validSourceTypes;
+
+ private String version;
+
+ private Long creationTime;
+
+ private Long modificationTime;
+
+ // private String derivedFrom;
+
+ public RelationshipTypeDataDefinition(RelationshipTypeDataDefinition cdt) {
+ super();
+ this.uniqueId = cdt.getUniqueId();
+ this.description = cdt.getDescription();
+ this.type = cdt.getType();
+ this.validSourceTypes = cdt.getValidSourceTypes();
+ this.version = cdt.getVersion();
+ this.creationTime = cdt.getCreationTime();
+ this.modificationTime = cdt.getModificationTime();
+ }
+
+ public RelationshipTypeDataDefinition() {
+
+ }
+
+ public String getUniqueId() {
+ return uniqueId;
+ }
+
+ public void setUniqueId(String uniqueId) {
+ this.uniqueId = uniqueId;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public List<String> getValidSourceTypes() {
+ return validSourceTypes;
+ }
+
+ public void setValidSourceTypes(List<String> validSourceTypes) {
+ this.validSourceTypes = validSourceTypes;
+ }
+
+ public String getVersion() {
+ return version;
+ }
+
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ public Long getCreationTime() {
+ return creationTime;
+ }
+
+ public void setCreationTime(Long creationTime) {
+ this.creationTime = creationTime;
+ }
+
+ public Long getModificationTime() {
+ return modificationTime;
+ }
+
+ public void setModificationTime(Long modificationTime) {
+ this.modificationTime = modificationTime;
+ }
+
+ @Override
+ public String toString() {
+ return "RelationshipTypeDataDefinition [uniqueId=" + uniqueId + ", description=" + description + ", type="
+ + type + ", validSourceTypes=" + validSourceTypes + ", version=" + version + ", creationTime="
+ + creationTime + ", modificationTime=" + modificationTime + "]";
+ }
+
+}
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/SchemaDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/SchemaDefinition.java
new file mode 100644
index 0000000000..3845a706b1
--- /dev/null
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/SchemaDefinition.java
@@ -0,0 +1,139 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.openecomp.sdc.be.datatypes.elements;
+
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Schema allows to create new types that can be used along TOSCA definitions.
+ */
+public class SchemaDefinition implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 7117891081909380577L;
+
+ private String derivedFrom;
+ private List<String> constraints;
+ private Map<String, PropertyDataDefinition> properties;
+
+ private PropertyDataDefinition property;
+
+ public SchemaDefinition() {
+
+ }
+
+ public SchemaDefinition(String derivedFrom, List<String> constraints,
+ Map<String, PropertyDataDefinition> properties) {
+ this.derivedFrom = derivedFrom;
+ this.constraints = constraints;
+ this.properties = properties;
+ }
+
+ public String getDerivedFrom() {
+ return derivedFrom;
+ }
+
+ public void setProperty(PropertyDataDefinition property) {
+ this.property = property;
+ }
+
+ public PropertyDataDefinition getProperty() {
+ return this.property;
+ }
+
+ public void setDerivedFrom(String derivedFrom) {
+ this.derivedFrom = derivedFrom;
+ }
+
+ public List<String> getConstraints() {
+ return constraints;
+ }
+
+ public void setConstraints(List<String> constraints) {
+ this.constraints = constraints;
+ }
+
+ public Map<String, PropertyDataDefinition> getProperties() {
+ return properties;
+ }
+
+ public void setProperties(Map<String, PropertyDataDefinition> properties) {
+ this.properties = properties;
+ }
+
+ public void addProperty(String key, PropertyDataDefinition property) {
+
+ properties.put(key, property);
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((constraints == null) ? 0 : constraints.hashCode());
+ result = prime * result + ((derivedFrom == null) ? 0 : derivedFrom.hashCode());
+ result = prime * result + ((properties == null) ? 0 : properties.hashCode());
+ result = prime * result + ((property == null) ? 0 : property.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ SchemaDefinition other = (SchemaDefinition) obj;
+ if (constraints == null) {
+ if (other.constraints != null)
+ return false;
+ } else if (!constraints.equals(other.constraints))
+ return false;
+ if (derivedFrom == null) {
+ if (other.derivedFrom != null)
+ return false;
+ } else if (!derivedFrom.equals(other.derivedFrom))
+ return false;
+ if (properties == null) {
+ if (other.properties != null)
+ return false;
+ } else if (!properties.equals(other.properties))
+ return false;
+ if (property == null) {
+ if (other.property != null)
+ return false;
+ } else if (!property.equals(other.property))
+ return false;
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return "SchemaDefinition [" + "derivedFrom='" + derivedFrom + ", constraints=" + constraints + ", properties="
+ + properties + ", property=" + property + ']';
+ }
+}